blake2-ppc fc17d4371f vec: Add .shift_opt() -> Option<T>
Add a function to safely retrieve the first element of a ~[T], as
Option<T>. Implement shift() using shift_opt().

Add tests for both .shift() and .shift_opt()
2013-07-05 20:32:25 +02:00
..
2013-06-23 02:05:20 -04:00
2013-06-29 08:35:48 -07:00
2013-07-01 23:37:11 -07:00
2013-06-29 00:56:36 -04:00
2013-06-25 21:14:39 -04:00
2013-07-01 23:37:11 -07:00
2013-06-25 21:14:39 -04:00
2013-06-29 08:35:48 -07:00
2013-06-28 10:47:59 -04:00
2013-06-23 12:49:16 +02:00
2013-06-23 02:05:20 -04:00
2013-06-30 16:36:48 -07:00
2013-06-23 12:49:16 +02:00
2013-06-29 08:35:48 -07:00
2013-06-28 00:23:38 -04:00
2013-07-05 20:32:25 +02:00