- 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.
推薦閱讀
- PHP動態(tài)網(wǎng)站程序設計
- Java范例大全
- Git Version Control Cookbook
- LabVIEW程序設計基礎與應用
- Django:Web Development with Python
- UI智能化與前端智能化:工程技術、實現(xiàn)方法與編程思想
- 深入RabbitMQ
- Unity UI Cookbook
- 零基礎學Kotlin之Android項目開發(fā)實戰(zhàn)
- Raspberry Pi Robotic Blueprints
- MyBatis 3源碼深度解析
- Access數(shù)據(jù)庫應用教程(2010版)
- HTML5/CSS3/JavaScript技術大全
- ASP.NET jQuery Cookbook(Second Edition)
- 少年小魚的魔法之旅:神奇的Python