Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ELIXIR

elixir enum all

Enum.all?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 3 end)
false
Enum.all?(["foo", "bar", "hello"], fn(s) -> String.length(s) > 1 end)
true
Source by elixirschool.com #
 
PREVIOUS NEXT
Tagged: #elixir #enum
ADD COMMENT
Topic
Name
7+3 =