import Data.Listeach n = unfoldr $ \xs -> do (x:_) <- Just xs; Just (x, drop n xs) main = do print $ each 4 [1..50]
Standard input is empty
[1,5,9,13,17,21,25,29,33,37,41,45,49]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!