Closed leek5pin closed 8 years ago
Is it just me, or does constantly not need redefining??? I can't imagine any type errors with it.
same goes for repeat
never mind, repeat does have a number argument
I'm not sure how I should test repeatedly for functionality. Either I need to use an atom, or have a function which is pretty much constant, or do random things but I don't want to deal with that.
I'll test it's errors for now, and revisit the testing for functionality.
weird:
(repeat 5.23 "x")
=> '("x" "x" "x" "x" "x")
(repeatedly 5.23 (constantly "x"))
=> '("x" "x" "x" "x" "x" "x")
and other commonly used functions need preconditions