Cons is Good - or why concatenating lists is slower than prepending elements Elixir Data Science Recently I sat and leafed through the book Programming Elixir . It had a simple challenge to write a function that would create a list from two inputs: from and to , creating an element for each value between and including from and to . I wrote something like this: def span_list (from, to, acc \\ [])…