Question: This component should be submitted separately to the code section in GradeScope. ( 1 ) Write an OCaml function maxAbsoluteVal : int list int that

This component should be submitted separately to the code section in GradeScope. (1) Write an OCaml function maxAbsoluteVal : int list int that takes an integer list l and returns the maximum absolute value of l. Examples: # maxAbsoluteVal [] ;; - : int =0 # maxAbsoluteVal [1;2;3;-4];; - : int =4(2) Write an OCaml function getnthdigit : int int that gets the n-th digit of an integer. Examples: # getnthdigit 123451;; - : int =1 # getnthdigit 311455;; - : int =5

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 Programming Questions!