My other foray into trying to bring functional parity between positional parameters and sequence variables is "shift". I'd like a shift operator that operates on a sequence variable similar to how shift works on positional parameters. Something like perl's shift.
example
a=(foo bar spam)
shift a
now a is (bar spam)
Not sure if I should do this though. It is the equivilent of this not-too-ugly (but not too obvious either)
a=<[ $a[position() > 1] ]>
3 comments:
Due to comment spam, moderation is turned on. I will approve all non-spam comments.