Closed njordhov closed 2 years ago
When the n argument is zero, take should return an empty list, instead of failing.
n
take
(take 0 (list 1 2 3 4 5 6)) => ()
(take 0 (list 1 2 3 4 5 6))
()
Fixed with ST165C6WB01M6CYJ2ZZESYBF51KQ01SVW3P7D1KM2.take7-01
Same for drop. Done.
drop
When the
n
argument is zero,take
should return an empty list, instead of failing.(take 0 (list 1 2 3 4 5 6))
=>()