From 0f070170708c14cba00ab76612ea409318e7075f Mon Sep 17 00:00:00 2001 From: Cleop Date: Tue, 28 Mar 2017 11:52:06 +0100 Subject: [PATCH] Adds detail to explaining Enumerable values for lists and tuples with extra links, Fixes #39 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5631217..e9575e1 100644 --- a/README.md +++ b/README.md @@ -251,8 +251,8 @@ iex> [1, true, 2, false, 3, true] -- [true, false] [1, 2, 3, true] ``` -Lists are enumerable, the [Enum](https://hexdocs.pm/elixir/Enum.html) -module provides lots of useful functions. +Lists are [enumerable](https://github.com/dwyl/learn-elixir/issues/39) and can use the [Enum](https://hexdocs.pm/elixir/Enum.html) +module to perform iterative functions such as mapping. ### Tuples @@ -274,8 +274,8 @@ iex> tuple_size(tuple) 2 ``` -Tuples are not enumerable and there are far fewer functions available -in the [Tuple](http://elixir-lang.org/docs/v1.0/elixir/Tuple.html) module. +Tuples are [not enumerable](https://github.com/dwyl/learn-elixir/issues/39) and there are far fewer functions available +in the [Tuple](http://elixir-lang.org/docs/v1.0/elixir/Tuple.html) module. You can reference tuple values by index but you cannot iterate over them. If you must treat your tuple as a list, then convert it using `Tuple.to_list(your_tuple)`