Question: Rewrite the following recursive function using an appropriate fold function. myLength : [a] -> Int myLength [] = 0 myLength (:xs) = 1 + myLength

![: [a] -> Int myLength [] = 0 myLength (:xs) = 1](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f50bd7199cf_38266f50bd6ba6f7.jpg)
Rewrite the following recursive function using an appropriate fold function. myLength : [a] -> Int myLength [] = 0 myLength (:xs) = 1 + myLength xs myLength x = _a__ (accx-> __b__ + 1) 0x _a 9. Choose the appropriate word to fill blank (10 Points) foldl foldr map scanr 10. Choose the appropriate word to fill blank ___b__ (10 Points) O Vacc map O y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
