elixir-linq-examples icon indicating copy to clipboard operation
elixir-linq-examples copied to clipboard

Use `import Enum`?

Open omnibs opened this issue 10 years ago • 0 comments

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.

omnibs avatar Oct 09 '15 21:10 omnibs