evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.04k stars 120 forks source link

Add implicit partials for array concatenation syntax #809

Closed evhub closed 9 months ago

evhub commented 9 months ago

E.g. should compile [. ; x] to the equivalent of _ => [_ ; x].

evhub commented 9 months ago

Relatedly, [;] should be an implicit partial for (x, y) => [x ; y]. And of course all of this should work with any number of semicolons.