GNU/Linux • xterm • bash 1 views

“Implement suma_lista/1 to add the elements of [1, 2, 3, 4, 5, 6, 7, 8] (length = 5 + (38 rem 5)).” Exercise 7 of 10 from the Erlang programming practice. This exercise was performed on an Ubuntu EC2 instance in AWS Academy, using the Erlang interactive shell (erl). It demonstrates recursion with lists by implementing a function that adds all the elements of a list, obtaining a final result of 36.