Posts by fsanches • 121 points
3 posts
-
0
votes1
answer251
viewsA: LISP exclusion function
To "delete" a phone from the list, we can build a new list recursively with all values other than what we want. (defun excluir (valor lista) (cond ((eql nil lista) nil) ;lista vazia/fim da lista,…
-
1
votes2
answers74
viewsA: FATAL failed to allocate memory
Apparently you are without memory. You are keeping in memory at the same time: A String Documents; The Hash Dictionary; The features_array Array; The Array training_set; By the error line you know…
-
1
votes3
answers161
viewsA: How can I make this code more functional in Javascript?
The main concepts of the functional paradigm are high-order functions (functions that receive other functions such as arguments) and no side effects. Programs are written as compositions of…