re: Daily Challenge #88 - Recursive Ninjas VIEW POST

FULL DISCUSSION
 

Haskell:

chirp 1 = "chirp."
chirp n = "chirp-" ++ chirp (n-1)

Also, you never said anything about Haskell standard functions :)

import Data.List (intercalate) 

chirp = (++".") . intercalate '-' . (flip replicate) "chirp" 
code of conduct - report abuse