Is there any built-in function in Scala that takes a part of an array and creates a new array from this part? Something that makes the following pseudo-code:
newarr = oldarr[3:5]
meaning, newarr is an array of 3 elements, that:
newarr[0]=oldarr[3]
newarr[1]=oldarr[4]
newarr[2]=oldarr[5]