Question: in Haskell, Write a function myprefix::String->String->Bool that checks whether a given word w is a prefix of another word v. E.g. myprefix ab abc ==
in Haskell, Write a function myprefix::String->String->Bool that checks whether a given word w is a prefix of another word v. E.g. myprefix "ab" "abc" == True and myprefix "ab" "cab" == False. Do not use any predeefined Haskell functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
