Learning Groovy, little by little. Trivial and not-so-trivial alike.
print_chars_list :: [Int] -> Char -> IO () print_chars_list [] _ = putStr "" print_chars_list (x:xs) c = do putStrLn (take x $ repeat c) print_chars_list xs c -- example print_chars_list [1,5,4,6,2] '."
No comments:
Post a Comment