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

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
主站蜘蛛池模板: 岳西县| 南宁市| 呼和浩特市| 桃江县| 格尔木市| 班玛县| 克东县| 江阴市| 横山县| 独山县| 大竹县| 化隆| 图片| 张家川| 洱源县| 蚌埠市| 望奎县| 宜兰市| 沙坪坝区| 龙游县| 墨江| 澜沧| 财经| 耒阳市| 应用必备| 龙江县| 阳朔县| 大邑县| 肇庆市| 焦作市| 德安县| 攀枝花市| 巴马| 来宾市| 乐安县| 霞浦县| 洪湖市| 新营市| 西乌珠穆沁旗| 荃湾区| 湟中县|