Elixir Today: Creating a Square Pattern using Elixir
Process
create an elixir file named square.ex
write the code
square = fn n ->
string =
for x when x < n <- 0..n do
for y when y < n <- 0..n do
" *"
end
end
result =
Enum.into(string, "", fn f ->
new_string...
paugramming.hashnode.dev2 min read