Using the LinkedList class in SmallTalk?

I'm not sure I fully understand how to use the LinkedList class provided with SmallTalk Visual Works. I can create an instance of the class simply by doing:

myList := LinkedList new.

But how to add node. I tried to instantiate the Link class and set the value, but it does not seem to work.

myLink := Link new.
myLink value: 3.

I am extremely new to smalltalk and any help would be greatly appreciated!

+3
source share
2 answers

OrderedCollection. . , , . OrderedCollection , LinkedList "" node.

LinkedList , OrderedCollection , .

+4

, , - Link, , value #value #value:. , , OrderedCollection.

+3

Source: https://habr.com/ru/post/1733626/


All Articles