!RBIX 0 x M 1 n n x 10 __script__ i 33 5 7 0 64 47 49 1 1 15 5 7 2 64 47 49 1 1 15 5 45 3 4 43 5 56 6 47 50 7 1 15 2 11 I 3 I 0 I 0 I 0 n p 8 s 11 spec_helper x 7 require s 12 hamster/list x 7 Hamster n x 4 List M 1 p 2 x 9 for_block t n x 9 __block__ i 11 5 7 0 64 56 1 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 3 s 5 #tail M 1 p 2 x 9 for_block t n x 9 __block__ i 55 5 7 0 64 56 1 47 50 2 1 15 35 0 35 0 35 2 7 3 64 35 1 35 0 35 2 7 3 64 7 4 64 7 5 64 35 3 7 4 64 7 5 64 35 2 35 2 35 3 56 6 50 7 0 11 I 6 I 0 I 0 I 0 I -2 p 8 s 20 on a really big list M 1 p 2 x 9 for_block t n x 9 __block__ i 19 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 5 M 1 p 2 x 9 for_block t n x 9 __block__ i 13 45 0 1 78 45 2 3 49 4 2 38 5 11 I 4 I 0 I 0 I 0 I -2 p 6 x 7 Hamster n x 20 STACK_OVERFLOW_DEPTH n x 8 interval x 5 @list p 5 I 0 I b I 0 I c I d x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 6 before s 24 doesn't run out of stack M 1 p 2 x 9 for_block t n x 9 __block__ i 15 5 56 0 47 50 1 0 5 47 48 2 49 3 1 11 I 3 I 0 I 0 I 0 I -2 p 4 M 1 p 2 x 9 for_block t n x 9 __block__ i 21 39 0 7 1 13 70 10 15 44 43 2 12 49 3 1 50 4 0 48 5 11 I 4 I 0 I 0 I 0 I -2 p 6 x 5 @list x 4 nil? x 4 Proc x 14 __from_block__ x 6 filter x 4 tail p 3 I 0 I 10 I 15 x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 6 lambda x 11 raise_error x 10 should_not p 5 I 0 I f I 0 I 10 I f x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 2 it p 7 I 0 I 9 I 0 I b I 8 I f I 13 x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 8 describe s 1 A s 1 B s 1 C M 1 p 2 x 9 for_block t n x 9 __block__ i 30 58 36 37 19 0 15 37 19 1 15 15 5 7 0 20 0 48 1 47 48 2 63 2 56 3 47 50 4 1 11 I 6 I 2 I 2 I 2 n p 5 s 3 on x 7 inspect x 4 to_s M 1 p 2 x 9 for_block t n x 9 __block__ i 39 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 21 1 1 48 6 47 48 7 63 2 56 8 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 9 M 1 p 2 x 9 for_block t n x 9 __block__ i 21 45 0 1 21 2 0 36 1 51 2 0 38 3 15 39 3 48 4 38 5 11 I 4 I 0 I 0 I 0 I -2 p 6 x 7 Hamster n x 4 list x 9 @original x 4 tail x 7 @result p 7 I 0 I 1d I 0 I 1e I e I 1f I 15 x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 6 before s 22 preserves the original M 1 p 2 x 9 for_block t n x 9 __block__ i 18 39 0 48 1 45 2 3 21 2 0 36 1 51 4 0 83 5 11 I 5 I 0 I 0 I 0 I -2 p 6 x 9 @original x 6 should x 7 Hamster n x 4 list x 2 == p 5 I 0 I 22 I 0 I 23 I 12 x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 2 it s 8 returns x 7 inspect x 4 to_s M 1 p 2 x 9 for_block t n x 9 __block__ i 18 39 0 48 1 45 2 3 21 2 1 36 1 51 4 0 83 5 11 I 5 I 0 I 0 I 0 I -2 p 6 x 7 @result x 6 should x 7 Hamster n x 4 list x 2 == p 5 I 0 I 26 I 0 I 27 I 12 x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 p 9 I 0 I 1b I 0 I 1d I 8 I 22 I 13 I 26 I 27 x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 8 describe p 7 I 0 I 16 I 3 I 19 I b I 1b I 1e x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 2 x 6 values x 8 expected x 4 each p 13 I 0 I 7 I 0 I 9 I b I 16 I 11 I 17 I 1a I 18 I 31 I 16 I 37 x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 8 describe p 5 I 0 I 5 I 0 I 7 I b x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0 x 8 describe p 7 I 0 I 1 I 9 I 3 I 12 I 5 I 21 x 68 /Users/haruki_zaemon/Projects/hamster/spec/hamster/list/tail_spec.rb p 0