Ad
Code
Diff
  • defmodule Solve do
      def sum(a, b), do: a+b
    end
    • sum = fn(a, b) -> a + b end
    • sum.(2,3)
    • defmodule Solve do
    • def sum(a, b), do: a+b
    • end