19 yo student *and* a full-time developer.
Building with Rails currently, exploring new frontiers.
I enjoy functional programming, Linux, FOSS, refactoring and mentoring :)
defmoduleDay81dorequireInteger@speceven_or_odd(String.t())::String.t()defeven_or_odd(string)do{even,odd}=string|>String.graphemes()|>Enum.map(&String.to_integer/1)|>Enum.split_with(&Integer.is_even/1){even,odd}={Enum.sum(even),Enum.sum(odd)}conddoeven>odd->"Even is greater than Odd"odd>even->"Odd is greater than Even"true->"Even and Odd are the same"endendend
19 yo student *and* a full-time developer.
Building with Rails currently, exploring new frontiers.
I enjoy functional programming, Linux, FOSS, refactoring and mentoring :)
Elixir:
I read
graphmemes
instead ofgraphemes
, I should probably stop browsing the internet for today...Graph memes would be too... Edgy.
Sorry :)