Question: Define the following functions in Haskell without using the predefined Haskell functions isDigit and toLower: (a) The function myisDigit that checks if a character is

Define the following functions in Haskell without using the predefined Haskell functions isDigit and toLower:

(a) The function myisDigit that checks if a character is a digit.

(b) The function mytoLower that lowers only upper case letters (all other characters should remain unchanged). Hint: Use chr,ord and the definitions of offset and capitalize from class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!