3 ms·
That's actually another difference, although I think its small: Scheme allows multiple arguments, RPL cannot. I.e. (+ 1 2 3 ) evals to 6, 1 2 3 + evals to 1
by vcbdcgdg 7y ago
That's actually another difference, although I think its small:
Scheme allows multiple arguments, RPL cannot. I.e.
(+ 1 2 3 ) evals to 6,
1 2 3 + evals to 1 5
RPL cant add your entire stack because presumably you have stuff in your stack you want to keep and not add.
But, if we put that aside, if RPL allowed:
[ 1, 4, 5, 6, [4 ,2 1, 6]]
where [] represent stacks, i.e. a stack can be an object in the stack, then the RPL would be very close to lisp.
Which is very close to what this min does.