“Define Materias = [“Datalog”, “Clingo”, “Erlang”, “Prolog”, “OCaml”] and retrieve the first and last elements using hd/1 and lists:last/1 (length = 3 + (N rem 4), rotation starting at N rem 13).”
Exercise 3 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 how to create a list and retrieve its first and last elements using hd/1 and lists:last/1.