DEV Community

loading...

Discussion on: Daily Challenge #225 - Square'n'Sum

Collapse
savagepixie profile image
SavagePixie

Elixir

def square_sum(n), do: n |> Enum.map(&(&1 * &1)) |> Enum.sum