Skip to content

Use import Enum? #4

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

Open
omnibs opened this issue Oct 9, 2015 · 0 comments
Open

Use import Enum? #4

omnibs opened this issue Oct 9, 2015 · 0 comments
Labels

Comments

@omnibs
Copy link
Owner

omnibs commented Oct 9, 2015

Code looks cleaner if I import Enum on my modules or on my funcs as below.

test "something" do
  import Enum

  numbers = [3,2,1]

  sorted_numbers = numbers |> sort

  assert [1,2,3] == sorted_numbers
end

Not sure if I should, considering this is for people learning the language.

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

No branches or pull requests

1 participant