Can Someone please explain difference between anonymous and named functions ? where we need to use Anonynous and Named functions?
From the Agents tutorial they use
@doc “”"
Gets a value from thebucketbykey.
“”"
def get(bucket, key) do
Agent.get(bucket, &Map.get(&1, key))
end
in the above example they have used named function Map.get/3 as Anonymous function by using Capture opertaor. Is there any particular reason to use ?






















