Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protocol Enumerable not implemented for nil #5

Open
anildigital opened this issue Sep 11, 2017 · 0 comments
Open

protocol Enumerable not implemented for nil #5

anildigital opened this issue Sep 11, 2017 · 0 comments

Comments

@anildigital
Copy link

iex(1)> Haikunator.build()
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil. This protocol is implemented for: Date.Range, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Range, Stream
    (elixir) /private/tmp/elixir-20170725-44573-1slglwp/elixir-1.5.0/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1
    (elixir) /private/tmp/elixir-20170725-44573-1slglwp/elixir-1.5.0/lib/elixir/lib/enum.ex:145: Enumerable.count/1
    (elixir) lib/enum.ex:1709: Enum.random/1
    (elixir) lib/enum.ex:1255: Enum."-map/2-lists^map/1-0-"/2
    (haikunator) lib/haikunator.ex:43: Haikunator.build/2

I am using Elixir 1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant