Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ELIXIR

for loop in elixir

 for x <- 0..10 do 
   IO.puts "x is: #{x}" 
end 

#But elixir programmer use more the following style of "loop" using Enum 
Enum.each(0..9, fn x ->
  IO.puts "x is: #{x}" 
end)
 
PREVIOUS NEXT
Tagged: #loop #elixir
ADD COMMENT
Topic
Name
1+6 =