4 ms·
Same, but I feel like I'm missing something with one of the examples. squareIsOdd = square >> isEven >> not -- `not` is a built-in function that inverts bo
by RobotCaleb 12y ago
Same, but I feel like I'm missing something with one of the examples.
squareIsOdd =
square >> isEven >> not -- `not` is a built-in function that inverts booleans
squareIsOdd 3 == True
squareIsOdd 7 == False <-- huh?
- joshschreuder 12y agoYeah I didn't get that either, shouldn't that be False both times? 3^2 = 9 and 7^2 = 49, both odd.
- lsjroberts 12y agoHah, woops. Author here, I switched between odd and even and forgot to update the numbers... I'll fix it.