LearnBoost/mongoose — pull request #936 by aheckmann (2012-05-25 16:29:37+00:00)
Title: [ready] fixed; array#{$pop,$shift} mirror MongoDB behavior

Both methods utilize the atomic $pop operation. This
operation can at most remove one element at a time.