Head of a list
Get the head of a list
1 = hd([1, 2, 3, 4])
# alternatively use pattern matching
[head | tail] = [1, 2, 3, 4]
# head contains 1
Get the head of a list
1 = hd([1, 2, 3, 4])
# alternatively use pattern matching
[head | tail] = [1, 2, 3, 4]
# head contains 1