Created
          May 25, 2022 12:26 
        
      - 
      
- 
        Save shapr/d5b12649e19766092b7878663c49d772 to your computer and use it in GitHub Desktop. 
  
    
      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 Splitty where | |
| splitty :: String -> [String] | |
| splitty [] = [] | |
| splitty [c] = [[c, '_']] | |
| splitty (a : b : cs) = [[a, b]] <> splitty cs | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment