scala code to get the len element of the list code example Example: get length of list scala mylist.length //or mylist1.size