Linked list: | val a = [3,4]; | |
Tuple: | val b = ("hi", 10, [20]); | |
Record: | val c = {x=100, y=200, z="there"}; |
These are the examples we went over in class today:
val kelp = [1,2,3]; val seaweed = tl(kelp); val algae = 5 :: 6 :: seaweed;
val urchin = { greetings=["hi","hello","howdy"], days=365, birthday=("February",29,2000) }; val anemone = #greetings(urchin); val starfish = (hd(anemone), "there");