Haskell style question:

When do people use regular function application and function composition, and when do they use `&`, the reverse application operator? The Elixir folks really like their equivalent `|>` operator for building pipelines.

For me, when the chain of functions is long, I find `&` clearer. In day 1 of Advent of Code this year, I wound up with two functions, one in each style.

github.com/bwbeach/advent-of-c

(Note: I tried markdown for the code in the post, but triple-backticks didn't preserve newlines. 😞)

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.