- 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.
推薦閱讀
- Practical Data Analysis Cookbook
- 現(xiàn)代C++編程:從入門到實(shí)踐
- 從零開始:數(shù)字圖像處理的編程基礎(chǔ)與應(yīng)用
- 我的第一本算法書
- Java EE 7 Performance Tuning and Optimization
- 單片機(jī)C語言程序設(shè)計(jì)實(shí)訓(xùn)100例
- FPGA Verilog開發(fā)實(shí)戰(zhàn)指南:基于Intel Cyclone IV(進(jìn)階篇)
- Learning Bootstrap 4(Second Edition)
- 算法秘籍
- Elasticsearch Blueprints
- Solr權(quán)威指南(下卷)
- MongoDB Administrator’s Guide
- Web開發(fā)新體驗(yàn)
- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Learning GraphQL and Relay