I can’t add an element of type T into a list List[T].
I tried with myList ::= myElement but it seems it creates a strange object and accessing to myList.last always returns the first element that was put inside the list. How can I solve this problem?

6 Answers
6

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *