Elixir Cookbook
上QQ阅读APP看书,第一时间看更新

Chapter 2. Data Types and Structures

This chapter will cover the following recipes:

  • Understanding immutability
  • Adding and subtracting lists
  • Combining tuples into a list
  • Creating and manipulating keyword lists
  • Using pattern matching
  • Pattern matching an HTTPoison response
  • Creating a key/value store with a map
  • Mapping and reducing enumerables
  • Generating lazy (even infinite) sequences
  • Streaming a file as a resource