|
|
|
|
|
by supernikio2
1102 days ago
|
|
This already exists to some extent, with the >> operator and lambdas. ``` first = ->(x){some code...} second = ->(x){some code...} third = ->(x){some code...} (third >> second >> first).call(arg) ``` I agree it's not as clean as what you propose, but much better imo than traditional nested calls (and Haskell's `.`). |
|
Ruby being a type 2 lisp is a fun one - creating a class and and a factory function with the same name, with argument forwarding: