groovy

nonintuitive behaviour on getting sublist with range