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

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
主站蜘蛛池模板: 扎赉特旗| 泗洪县| 永寿县| 二手房| 大化| 余庆县| 漳浦县| 平乡县| 嵩明县| 醴陵市| 新民市| 水富县| 常州市| 内江市| 富锦市| 白朗县| 常熟市| 蒙城县| 江津市| 泉州市| 贞丰县| 黄大仙区| 厦门市| 高密市| 苍溪县| 克拉玛依市| 长丰县| 鄂托克前旗| 和林格尔县| 安阳县| 忻城县| 成都市| 连城县| 大名县| 茂名市| 来宾市| 横峰县| 安化县| 蓬莱市| 肇源县| 含山县|