excercise joy of elixir

Run Settings
LanguageElixir
Language Version
Run Command
dayHours = 24 daySecs = dayHours * 60 * 60 IO.puts(daySecs) hoursIn30Days = daySecs / 60 / 60 * 30 IO.puts(hoursIn30Days) avg = (4 + 8 + 15 + 16 + 23 + 42) / 6 IO.puts(avg) fahrenheit_to_celsius = &((&1 - 32) / 1.8) days_to_secs = &(&1 * 24 * 60 * 60) calc_avg_age = fn (p1, p2) -> (p1.age + p2.age) / 2 end
Editor Settings
Theme
Key bindings
Full width
Lines