Created
November 30, 2018 09:18
-
-
Save edisonywh/d060f4790172c31b10330df09f2a558c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start = 1 | |
increment = 1 | |
length = 500000 | |
list = Stream.iterate(start, &(&1 + increment)) |> Enum.take(length) | |
Recursion.traverse(list) | |
# Element: 1 | |
# Element: ... | |
# Element: ... | |
# Element: 500000 | |
# Done | |
#=> :ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment