Automatic a for vectorised operations
A stack-oriented programming language suitable for code golfing
Status: Alpha
Brought to you by:
aditsu
Unless you have bigger plans for .op
on non-ArrayList types, they should implicitly wrap the operands in an array if they aren't arrays already (at least if one of them isn't an array). This would give a way to apply a binary operation only to the first element of an array.
5 [0 1 2 3 4] .+ --> [5 1 2 3 4]
Currently this would throw an error instead.
This is in conflict with Optimizer's addendum in this feature request: https://sourceforge.net/p/cjam/tickets/64/ ... I suppose that would be a good option, too.