Created
November 24, 2017 08:22
-
-
Save mfandl/f709704b78baef645145d1e02e3160cd to your computer and use it in GitHub Desktop.
This file contains 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
import Data.List | |
lookAndSay :: [Int] -> [Int] | |
lookAndSay = foldr fn [] . group | |
where fn x acc = length x : head x : acc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment