Yeah I implemented one that wraps a compilation environment as well, it takes the environment and two enumerables and calls the callback with the environment and each enumerable element accepting the updates environment and mapped value back out, it is not hard to build manually but is something useful:
https://github.com/OvermindDL1/typed_elixir/blob/master/lib/typed_elixir/hm_env.ex#L166-L177 On Sunday, May 21, 2017 at 7:26:28 PM UTC-6, Peter Hamilton wrote: > > Stream.zip and Enum.map are pretty good here. > > What might be missing is a function that takes a tuple and applies a > function to its elements. > > On Sun, May 21, 2017, 6:22 PM Ricky Han <[email protected] <javascript:>> > wrote: > >> This function is very handy and should not be composed ad hoc because it >> is an abstraction for binary function application. In Haskell and Python >> functools it's a first class function >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elixir-lang-core/541f9c0d-2fad-4bda-a4f1-279725844566%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elixir-lang-core/541f9c0d-2fad-4bda-a4f1-279725844566%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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/21fd11a5-1161-4a26-920b-c5ef5ec913a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
