We have the following function:
repartir [a] -> ([a],[a])
In order to distribute, you must distribute the main list in two lists, taking the elements in this way:
repartir [1,2,3,4,5]
---> ([1,3,5],[2,4])
repartir "hola"
--->...
asked on
25.10.2016 / 09:45