Created
October 2, 2014 17:54
-
-
Save johnwalker/02931b999300e4d2a03d to your computer and use it in GitHub Desktop.
CIS193 Exercise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Golf where | |
import Data.List.Split | |
skips :: [a] -> [[a]] | |
skips a = map (\x -> (map head $ chunksOf x $ drop (x-1) a)) [1..length a] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment