module Thoran

Changes:

  1. + Thoran namespace.

Changes since 0.1:

  1. Added the complement of the extended version of Array#first!.

0/1

  1. Switched the tests to spec-style.

1/2

  1. Added a test for the state of the array afterward, since this is meant to be an in place change.

2/3

  1. Added tests for the extended functionality introduced in the first version 0.1.0.

  2. Fixed the implementation, so that the order is retained by unshifting the popped values rather than appending the shifted values as is the case with Array#first!.

Changes since 0.2:

  1. + Thoran namespace.

Changes:

  1. Returning an empty array when there's no match, since that's more consistent.