3 ms·
No, because when calling your and(a, b) you will evaluate both a and b, while I expect the one on that page to short-circuit. PS: Also, I'm not sure because I
by cosarara97 11y ago
No, because when calling your and(a, b) you will evaluate both a and b, while I expect the one on that page to short-circuit.
PS: Also, I'm not sure because I don't know Kernel, but it could be that the function of the page can take any number equal or greater than 2 arguments (and a b c).
- ycmbntrthrwaway 11y ago> it could be that the function of the page can take any number equal or greater than 2 arguments (and a b c) It can. That is what line 5 is for. If eval returns true, $and? is applied to the rest of the arguments, aka cdr.