functional programming - Clojure. Drop-every? -


Is there a "drop-every" type of function in the closure library?

Cheers

Takes a lazy list right now and returns a list with every NT item?

  (drop-every [xx] (lazy- Example:   

Example:

Pre> drop-every 2 [0 1 2 3 4 5]); = (0 2 4) (drop-every 3 [0 1 2 3 4 5 6 7 8]); = (0 1 3 4 6 7)

As a side note, drop-end will be an attractive name, because already a In Le-Anith , the is close. Core . However, le- nth always returns the first item and then returns every nth item, whereas the above version of drop-every starts with the nth item of each nth item The original sequence (the first function to leave the first function and every NT item would be easy to write in the above context.)

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -