Is it possible to write parameterized function using & notation?
Here is an example of parameterized function from Programming Elixir book of Dave Thomas
title = fn (title) -> ( fn (name) -> title <> " " <> name end ) end
mrs = title.("Mrs.")
IO.puts mrs.("Rose")
Output of above program is:
Mrs. Rose
[Finished in 0.6s]
Can title
be written using & notation? Example of & notation is given below
iex> square = &(&1 * &1)
#Function<6.17052888 in :erl_eval.expr/5>
iex> square.(8)
64