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

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
主站蜘蛛池模板: 荆门市| 阿合奇县| 靖安县| 卢龙县| 文安县| 磴口县| 玉门市| 南溪县| 娄底市| 塔河县| 泰州市| 普格县| 泰宁县| 乐东| 济南市| 陵水| 塔河县| 溧水县| 偃师市| 义乌市| 广宁县| 延边| 安庆市| 含山县| 遂溪县| 金秀| 肃南| 正镶白旗| 内江市| 巴马| 莱芜市| 康定县| 岢岚县| 缙云县| 铁岭县| 海伦市| 丹阳市| 潞城市| 龙岩市| 芜湖市| 阳高县|