TEST
12
matricola: ______________________________
nome (solo se non si ricorda la matricola):
__________________________________
- Define a Scheme function "flattenRev" which takes a list of lists
of numbers, arbitrarily nested, and returns the flat list of the
numbers present in it, but with inverted positions.
Ex: (flattenRev (list
(list 1 2 (list 3 4) 5) 6 7 (list 8 9))) --> (9 8 7 6 5 4 3 2 1)
- Define in Haskell the data type IntegerNumber (assuming it is not
predefined).
- What is the precedence relation induced by a Scheme function
definition?