Implement the following functions using higher-order functions (and other predefined functions) of Haskell without using recursion.
Implement a function flatten :: [[Int]] -> [Int]
that flattens a list of lists of integers in a list of
integers.
Implement a function myLength :: String -> Int
that returns the length of a string.
Implement a function myReverse :: [Int] -> [Int]
that reverses a list of integers.
Implement a function
countIn :: [[Int]] -> Int -> [Int] that, given a list
of sublists
and an element
,
returns the list that tells who many times
appears in each sublist of
.
Implement a function
firstWord :: String -> String that, given a string with
blanks and alphabetic characters, returns its first word.
Each function scores 20 points.
Author: Unknown
Translator: Jordi Petit
Generation: 2026-02-03T17:11:10.229Z
© Jutge.org, 2006–2026.
https://jutge.org