Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
10
Task/Loops-Nested/Elixir/loops-nested-2.ex
Normal file
10
Task/Loops-Nested/Elixir/loops-nested-2.ex
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
list = Enum.shuffle(1..20) |> Enum.chunk(5)
|
||||
IO.inspect list, char_lists: :as_lists
|
||||
Enum.any?(list, fn row ->
|
||||
IO.puts ""
|
||||
Enum.any?(row, fn x ->
|
||||
IO.write "#{x} "
|
||||
x == 20
|
||||
end)
|
||||
end)
|
||||
IO.puts "done"
|
||||
Loading…
Add table
Add a link
Reference in a new issue