This is a common task I\'m facing: splitting a space separated list into a head element and an array containing the tail elements. For example, given this
str= "the quick brown fox" pqr = str.split(" ")