Question: Haskell 1.cycleN :: Int -> [a] -> [a)] Write a function that takes a number n and a list l and return a list containing
Haskell
![Haskell 1.cycleN :: Int -> [a] -> [a)] Write a function that](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f04e507226d_72066f04e500cacf.jpg)
1.cycleN :: Int -> [a] -> [a)] Write a function that takes a number n and a list l and return a list containing the elements of 1 repeated n times Examples: cycleN [1..10] LJ >cycleN 5 "hello" "hellohellohellohellohello" Permitted functions: (-), (++) 2.countLessThan (Ord a) >a - [a] -Int Write a function that takes a value and a list and returns the number of items in the list less than the provided value. Examples: countLessThan 10 O..20] 10 countLessThan 'g "supercalifragilisticexpialidocious" 10 Permitted functions:(+),()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
