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

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
主站蜘蛛池模板: 芜湖市| 裕民县| 托里县| 栾川县| 子长县| 南安市| 肥东县| 成武县| 娄底市| 玉林市| 楚雄市| 丰都县| 平舆县| 泰州市| 锡林郭勒盟| 洛南县| 红河县| 雷州市| 湘乡市| 桦南县| 巴里| 铜鼓县| 长岛县| 石家庄市| 虹口区| 北川| 洪湖市| 山东| 茌平县| 青铜峡市| 云浮市| 长武县| 永和县| 丰城市| 南丹县| 马尔康县| 友谊县| 资源县| 凤山市| 北海市| 丹巴县|