Hi. Often I see the following pattern to build function "pipelines":
x = f1 . f2 $ fn arg
They use the "$" just before the last function call. I never got
much into it: when to use the "." or the "$"? I think today I
figured it out:
=> "." is a function composition operator: used to "merge"
functions;
=> "$" is a function application operator: used to apply a
function to its arguments.
If this reasoning is correct, I think the following should be a more
adequate pattern:
x = f1 . f2 . fn $ arg
To merge/compose all functions first and apply the composed function
to its parameter(s).
Am I correct on this? Thx