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

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
主站蜘蛛池模板: 康定县| 丘北县| 庆元县| 高尔夫| 秦皇岛市| 砀山县| 莱西市| 宜城市| 桂东县| 宁乡县| 阿克陶县| 达日县| 晴隆县| 四平市| 延边| 合阳县| 青川县| 郧西县| 行唐县| 甘孜县| 邯郸市| 盐源县| 乌拉特中旗| 历史| 五指山市| 广灵县| 德安县| 荥经县| 衡东县| 常德市| 科尔| 芮城县| 莱阳市| 荆州市| 济源市| 泰兴市| 宁化县| 光泽县| 榆树市| 宝山区| 庐江县|