- Mastering Elixir
- André Albuquerque Daniel Caixinha
- 127字
- 2021-08-05 10:42:48
Working with collections
Contrary to the most common programming languages, Elixir doesn't have while or do ... while constructs, which makes sense, given all data types are immutable. The way to iterate in Elixir is by using recursion, through functions that call themselves. Most of your needs when working with collections are covered by the high-level abstractions Elixir provides, meaning that you may barely use recursion when writing your Elixir applications.
Nevertheless, we'll begin this section by briefly describing recursion, and show an example of a recursive function in Elixir. Then, we'll see how we can process a collection using the Enum module, and finish the section by talking about the benefits of processing a collection lazily, and how to do it using the Stream module.
- PyTorch自動駕駛視覺感知算法實戰
- Web Scraping with Python
- Python:Master the Art of Design Patterns
- Developing SSRS Reports for Dynamics AX
- OpenCV 3 Blueprints
- IBM Cognos TM1 Developer's Certification guide
- Python自然語言理解:自然語言理解系統開發與應用實戰
- Building Business Websites with Squarespace 7(Second Edition)
- Mudbox 2013 Cookbook
- PHP+MySQL Web應用開發教程
- SCRATCH編程課:我的游戲我做主
- Python高性能編程(第2版)
- VMware vSphere Design Essentials
- MySQL核心技術與最佳實踐
- Getting Started with RethinkDB