chickadee » list-utils » skip+

skip+ LIST COUNTprocedure

Returns 2 values, the COUNT pair from LIST, and the remaining count. The remaining count will be non-zero when end-of-list reached.

COUNT is a natural fixnum.

(skip+ '(1 2) 3) ;=> '() 1
(skip+ '(1 2 3) 3) ;=> '() 0
(skip+ '(1 2 3 4) 3) ;=> '(4) 0