- Mastering Elixir
- André Albuquerque Daniel Caixinha
- 97字
- 2021-08-05 10:42:47
Functions and Modules
Despite not being mentioned in the data types section, functions in Elixir are a type as well–in fact, they are a first-class citizen, as they can be assigned to a variable and passed as arguments to other functions.
As with most functional programming languages, functions are an important type, hence they justify having their own section, away from other built-in types.
We will start by exploring anonymous functions, followed by an explanation of modules and named functions, and then we'll end this section with a quick tour of module attributes and directives.
推薦閱讀
- 摩登創客:與智能手機和平板電腦共舞
- 架構不再難(全5冊)
- C#完全自學教程
- Raspberry Pi for Secret Agents(Third Edition)
- jQuery從入門到精通 (軟件開發視頻大講堂)
- Windows Server 2012 Unified Remote Access Planning and Deployment
- Swift 4從零到精通iOS開發
- Instant PHP Web Scraping
- SwiftUI極簡開發
- Instant Automapper
- Python預測之美:數據分析與算法實戰(雙色)
- Clojure Web Development Essentials
- Learn Linux Quickly
- 用Go語言自制編譯器
- Spring MVC Blueprints