Hello,

Writing `Agent.get(agent, fn x -> x end)` or even shorter
`Agent.get(agent, &(&1))` is kind of verbose for this non-specific
behavior.

Maybe the `fun` argument of `Agent.get/2` could be set to `fn x -> x
end` by default making `Agent.get/1` available?

--
Pierre

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAL3hriJqr95fxzLaDXadYsUNWR1-Njzcgtpr-NJp8kS%3Ddin0Jw%40mail.gmail.com.

Reply via email to