5.1 - More Functions on Lists
already known methods:
xs.head
xs.tail
sublist and ele access:
xs.lengthxs.lastxs.init: all elementh except last elementxs.take(n): sublist of first n elementsxs.drop(n): the rest of list after taking first n elementsxs(n …