February
16th,
2016
Lists
Lists can contain anything! [Element1, Element2, ..., ElementN]
1> [1, 2, 3, {numbers,[4,5,6]}, 5.34, atom].
[1,2,3,{numbers,[4,5,6]},5.34,atom]
2> [97, 98, 99].
"abc"
[New] ++ [OldList]
BIFS
hd([1,2,3,4]).
tl([1,2,3,4]).
length(List).
pattern matching:
[Head|Tail].