If you omit the parameter before the colon (:) It will mean all the way for that parameter.
So, [:3:1], here first colon has no parameter which means all the way from the beginning. And, [0::1] here second colon has no parameter which means all the way to the end.