quark v2.2.0 Release Notes

Release Date: 2016-09-12 // almost 5 years ago
  • Pointfree unary functions!

    ๐Ÿ‘ Allows defining functions as straight function composition (ie: no need to state the argument). Provides a clean, composable named functions. Also doubles as an aliasing device.

    defmodule Foo douse Quark defx foo, do: Enum.sum |\> succ defx bar, do: ((&Enum.sum/1) \<~\> succ).()end[1,2,3] |\> Foo.foo#=\> 7[1,2,3] |\> Foo.bar#=\> 7

    ๐Ÿฑ Pointfree n-ary functions (based on the first function in the body) is still coming ๐Ÿ˜„