Closed ShiroAka closed 6 years ago
Adding new lists function called 'list_fold' which lets you fold a list into a single value, with a given function. That function should accept 2 values of the data type found in the list, and return a value of the same data type.
La función fold en varios lenguajes, recibe la semilla/valor inicial.
fold
Si queremos que reciba como valor inicial el primer elemento, la llamaría fold1 o fold_with_head algo por el estilo.
fold1
fold_with_head
Adding new lists function called 'list_fold' which lets you fold a list into a single value, with a given function. That function should accept 2 values of the data type found in the list, and return a value of the same data type.