Example: (split '(1 2 3) 0)
=> ((1) (2 3))
which is exactly the same as (split '(1 2 3) 1)
=> ((1) (2 3))
So I fixed it to do this: (split '(1 2 3) 0)
=> (nil (1 2 3))
Hopefully that really is a bug and not intended behaviour. The problem with spec = code is that the bugs are the spec! |