官术网_书友最值得收藏!

Functions

Julia is first and foremost a functional language because computations and data transformations are done through functions; they are first-class citizens in Julia. Programs are structured around defining functions and to overload them for different combinations of argument types. This chapter discusses this keystone concept, covering the following topics:

  • Defining functions
  • Optional and keyword arguments
  • Anonymous functions
  • First-class functions and closures
  • Recursive functions
  • Broadcasting
  • Map, filter, and list comprehensions
  • Generic functions and multiple dispatch
主站蜘蛛池模板: 兴和县| 台南市| 沅江市| 淄博市| 蓝山县| 枞阳县| 肇源县| 漳州市| 崇礼县| 行唐县| 绥宁县| 娄烦县| 华坪县| 南投县| 民县| 石景山区| 东乡| 沈丘县| 奎屯市| 梅河口市| 岗巴县| 偏关县| 长汀县| 滨州市| 济源市| 枣庄市| 桑植县| 德格县| 武宁县| 常宁市| 会同县| 福鼎市| 江山市| 光山县| 涟水县| 河北区| 改则县| 叙永县| 淮滨县| 昌图县| 肇源县|