hamster 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/History.rdoc +16 -0
  2. data/README.rdoc +10 -10
  3. data/lib/hamster/core_ext/enumerable.rb +1 -1
  4. data/lib/hamster/core_ext/enumerable.rbc +481 -0
  5. data/lib/hamster/core_ext/io.rb +0 -1
  6. data/lib/hamster/core_ext/io.rbc +604 -0
  7. data/lib/hamster/hash.rb +6 -6
  8. data/lib/hamster/hash.rbc +3117 -0
  9. data/lib/hamster/list.rb +50 -14
  10. data/lib/hamster/list.rbc +7274 -0
  11. data/lib/hamster/set.rb +8 -7
  12. data/lib/hamster/set.rbc +3152 -0
  13. data/lib/hamster/stack.rbc +1358 -0
  14. data/lib/hamster/trie.rbc +3416 -0
  15. data/lib/hamster/version.rb +1 -1
  16. data/spec/hamster/core_ext/enumerable_spec.rb +1 -1
  17. data/spec/hamster/core_ext/enumerable_spec.rbc +747 -0
  18. data/spec/hamster/core_ext/io_spec.rbc +409 -0
  19. data/spec/hamster/hash/all_spec.rbc +1214 -0
  20. data/spec/hamster/hash/any_spec.rbc +1495 -0
  21. data/spec/hamster/hash/construction_spec.rbc +742 -0
  22. data/spec/hamster/hash/copying_spec.rbc +519 -0
  23. data/spec/hamster/hash/each_spec.rbc +908 -0
  24. data/spec/hamster/hash/empty_spec.rbc +517 -0
  25. data/spec/hamster/hash/eql_spec.rb +1 -1
  26. data/spec/hamster/hash/eql_spec.rbc +1702 -0
  27. data/spec/hamster/hash/filter_spec.rbc +1433 -0
  28. data/spec/hamster/hash/get_spec.rbc +791 -0
  29. data/spec/hamster/hash/has_key_spec.rbc +719 -0
  30. data/spec/hamster/hash/map_spec.rbc +1454 -0
  31. data/spec/hamster/hash/none_spec.rbc +1399 -0
  32. data/spec/hamster/hash/put_spec.rbc +1334 -0
  33. data/spec/hamster/hash/reduce_spec.rbc +1234 -0
  34. data/spec/hamster/hash/reject_spec.rbc +1445 -0
  35. data/spec/hamster/hash/remove_spec.rbc +1135 -0
  36. data/spec/hamster/hash/size_spec.rbc +596 -0
  37. data/spec/hamster/list/all_spec.rb +12 -4
  38. data/spec/hamster/list/all_spec.rbc +1760 -0
  39. data/spec/hamster/list/any_spec.rb +12 -4
  40. data/spec/hamster/list/any_spec.rbc +1888 -0
  41. data/spec/hamster/list/append_spec.rb +12 -5
  42. data/spec/hamster/list/append_spec.rbc +1555 -0
  43. data/spec/hamster/list/cadr_spec.rb +1 -1
  44. data/spec/hamster/list/cadr_spec.rbc +855 -0
  45. data/spec/hamster/list/cons_spec.rbc +848 -0
  46. data/spec/hamster/list/construction_spec.rbc +1732 -0
  47. data/spec/hamster/list/copying_spec.rbc +555 -0
  48. data/spec/hamster/list/drop_spec.rb +12 -4
  49. data/spec/hamster/list/drop_spec.rbc +1081 -0
  50. data/spec/hamster/list/drop_while_spec.rb +12 -4
  51. data/spec/hamster/list/drop_while_spec.rbc +1286 -0
  52. data/spec/hamster/list/each_spec.rb +13 -5
  53. data/spec/hamster/list/each_spec.rbc +1365 -0
  54. data/spec/hamster/list/empty_spec.rb +1 -1
  55. data/spec/hamster/list/empty_spec.rbc +571 -0
  56. data/spec/hamster/list/eql_spec.rb +15 -5
  57. data/spec/hamster/list/eql_spec.rbc +1819 -0
  58. data/spec/hamster/list/filter_spec.rb +13 -5
  59. data/spec/hamster/list/filter_spec.rbc +1595 -0
  60. data/spec/hamster/list/find_spec.rb +12 -4
  61. data/spec/hamster/list/find_spec.rbc +1456 -0
  62. data/spec/hamster/list/head_spec.rb +1 -1
  63. data/spec/hamster/list/head_spec.rbc +575 -0
  64. data/spec/hamster/list/include_spec.rb +12 -4
  65. data/spec/hamster/list/include_spec.rbc +1173 -0
  66. data/spec/hamster/list/inspect_spec.rb +13 -5
  67. data/spec/hamster/list/inspect_spec.rbc +995 -0
  68. data/spec/hamster/list/map_spec.rb +12 -4
  69. data/spec/hamster/list/map_spec.rbc +1545 -0
  70. data/spec/hamster/list/maximum_spec.rb +83 -0
  71. data/spec/hamster/list/minimum_spec.rb +83 -0
  72. data/spec/hamster/list/none_spec.rb +11 -3
  73. data/spec/hamster/list/none_spec.rbc +1788 -0
  74. data/spec/hamster/list/one_spec.rb +83 -0
  75. data/spec/hamster/list/partition_spec.rb +37 -9
  76. data/spec/hamster/list/partition_spec.rbc +2715 -0
  77. data/spec/hamster/list/reduce_spec.rb +12 -4
  78. data/spec/hamster/list/reduce_spec.rbc +2081 -0
  79. data/spec/hamster/list/reject_spec.rb +12 -4
  80. data/spec/hamster/list/reject_spec.rbc +1590 -0
  81. data/spec/hamster/list/reverse_spec.rb +12 -4
  82. data/spec/hamster/list/reverse_spec.rbc +1061 -0
  83. data/spec/hamster/list/size_spec.rb +13 -5
  84. data/spec/hamster/list/size_spec.rbc +1063 -0
  85. data/spec/hamster/list/tail_spec.rb +1 -1
  86. data/spec/hamster/list/tail_spec.rbc +595 -0
  87. data/spec/hamster/list/take_spec.rb +12 -4
  88. data/spec/hamster/list/take_spec.rbc +1075 -0
  89. data/spec/hamster/list/take_while_spec.rb +12 -4
  90. data/spec/hamster/list/take_while_spec.rbc +1446 -0
  91. data/spec/hamster/list/to_a_spec.rb +31 -19
  92. data/spec/hamster/list/to_a_spec.rbc +961 -0
  93. data/spec/hamster/list/to_ary_spec.rb +11 -3
  94. data/spec/hamster/list/to_ary_spec.rbc +1080 -0
  95. data/spec/hamster/list/to_list_spec.rb +31 -0
  96. data/spec/hamster/set/add_spec.rbc +1039 -0
  97. data/spec/hamster/set/all_spec.rbc +1316 -0
  98. data/spec/hamster/set/any_spec.rbc +1444 -0
  99. data/spec/hamster/set/construction_spec.rbc +422 -0
  100. data/spec/hamster/set/copying_spec.rbc +469 -0
  101. data/spec/hamster/set/each_spec.rbc +820 -0
  102. data/spec/hamster/set/empty_spec.rbc +452 -0
  103. data/spec/hamster/set/eql_spec.rb +1 -1
  104. data/spec/hamster/set/eql_spec.rbc +1309 -0
  105. data/spec/hamster/set/filter_spec.rbc +1272 -0
  106. data/spec/hamster/set/include_spec.rbc +657 -0
  107. data/spec/hamster/set/map_spec.rbc +1285 -0
  108. data/spec/hamster/set/none_spec.rbc +1344 -0
  109. data/spec/hamster/set/reduce_spec.rbc +1177 -0
  110. data/spec/hamster/set/reject_spec.rbc +1273 -0
  111. data/spec/hamster/set/remove_spec.rbc +947 -0
  112. data/spec/hamster/set/size_spec.rbc +531 -0
  113. data/spec/hamster/set/to_a_spec.rb +16 -12
  114. data/spec/hamster/set/to_a_spec.rbc +559 -0
  115. data/spec/hamster/stack/construction_spec.rbc +862 -0
  116. data/spec/hamster/stack/copying_spec.rbc +555 -0
  117. data/spec/hamster/stack/empty_spec.rb +1 -1
  118. data/spec/hamster/stack/empty_spec.rbc +571 -0
  119. data/spec/hamster/stack/eql_spec.rb +1 -1
  120. data/spec/hamster/stack/eql_spec.rbc +1281 -0
  121. data/spec/hamster/stack/inspect_spec.rb +1 -1
  122. data/spec/hamster/stack/inspect_spec.rbc +586 -0
  123. data/spec/hamster/stack/pop_spec.rbc +1099 -0
  124. data/spec/hamster/stack/push_spec.rbc +848 -0
  125. data/spec/hamster/stack/size_spec.rb +1 -1
  126. data/spec/hamster/stack/size_spec.rbc +650 -0
  127. data/spec/hamster/stack/top_spec.rbc +676 -0
  128. data/spec/hamster/trie/remove_spec.rbc +40 -0
  129. data/spec/spec_helper.rbc +163 -0
  130. data/tasks/spec.rbc +201 -0
  131. metadata +90 -2
@@ -8,14 +8,21 @@ describe Hamster::List do
8
8
 
9
9
  describe "##{method}" do
10
10
 
11
- describe "on two really big lists" do
11
+ describe "doesn't run out of stack space on a really big" do
12
12
 
13
13
  before do
14
- @a = Hamster.interval(0, 10000)
15
- @b = Hamster.interval(0, 10000)
14
+ @interval = Hamster.interval(0, 10000)
16
15
  end
17
16
 
18
- it "doesn't run out of stack space" do
17
+ it "stream" do
18
+ @a = @b = @interval
19
+ end
20
+
21
+ it "list" do
22
+ @a = @b = @interval.reduce(Hamster.list) { |list, i| list.cons(i) }
23
+ end
24
+
25
+ after do
19
26
  @a.send(method, @b)
20
27
  end
21
28
 
@@ -54,7 +61,7 @@ describe Hamster::List do
54
61
 
55
62
  it "is lazy" do
56
63
  count = 0
57
- Hamster.stream { |item| count += 1 }.append(Hamster.list("A"))
64
+ Hamster.stream { count += 1 }.append(Hamster.list("A"))
58
65
  count.should <= 1
59
66
  end
60
67
 
@@ -0,0 +1,1555 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 50
13
+ 5
14
+ 42
15
+ 0
16
+ 1
17
+ 42
18
+ 0
19
+ 2
20
+ 61
21
+ 45
22
+ 3
23
+ 46
24
+ 4
25
+ 1
26
+ 7
27
+ 5
28
+ 60
29
+ 77
30
+ 6
31
+ 46
32
+ 7
33
+ 1
34
+ 44
35
+ 46
36
+ 8
37
+ 1
38
+ 14
39
+ 5
40
+ 7
41
+ 9
42
+ 60
43
+ 44
44
+ 46
45
+ 8
46
+ 1
47
+ 14
48
+ 5
49
+ 42
50
+ 10
51
+ 11
52
+ 40
53
+ 12
54
+ 53
55
+ 13
56
+ 44
57
+ 47
58
+ 14
59
+ 1
60
+ 14
61
+ 2
62
+ 11
63
+ I
64
+ 4
65
+ I
66
+ 0
67
+ I
68
+ 0
69
+ I
70
+ 0
71
+ n
72
+ p
73
+ 15
74
+ x
75
+ 4
76
+ File
77
+ n
78
+ n
79
+ x
80
+ 11
81
+ active_path
82
+ x
83
+ 7
84
+ dirname
85
+ s
86
+ 18
87
+ /../../spec_helper
88
+ x
89
+ 1
90
+ +
91
+ x
92
+ 11
93
+ expand_path
94
+ x
95
+ 7
96
+ require
97
+ s
98
+ 12
99
+ hamster/list
100
+ x
101
+ 7
102
+ Hamster
103
+ n
104
+ x
105
+ 4
106
+ List
107
+ M
108
+ 1
109
+ n
110
+ n
111
+ x
112
+ 9
113
+ __block__
114
+ i
115
+ 16
116
+ 7
117
+ 0
118
+ 7
119
+ 1
120
+ 7
121
+ 2
122
+ 7
123
+ 3
124
+ 32
125
+ 4
126
+ 53
127
+ 4
128
+ 47
129
+ 5
130
+ 0
131
+ 11
132
+ I
133
+ 5
134
+ I
135
+ 0
136
+ I
137
+ -1
138
+ I
139
+ -1
140
+ n
141
+ p
142
+ 6
143
+ x
144
+ 6
145
+ append
146
+ x
147
+ 6
148
+ concat
149
+ x
150
+ 3
151
+ cat
152
+ x
153
+ 1
154
+ +
155
+ M
156
+ 1
157
+ n
158
+ n
159
+ x
160
+ 9
161
+ __block__
162
+ i
163
+ 21
164
+ 54
165
+ 17
166
+ 0
167
+ 14
168
+ 5
169
+ 18
170
+ 0
171
+ 44
172
+ 45
173
+ 0
174
+ 7
175
+ 1
176
+ 60
177
+ 59
178
+ 53
179
+ 2
180
+ 44
181
+ 47
182
+ 3
183
+ 1
184
+ 11
185
+ I
186
+ 5
187
+ I
188
+ 1
189
+ I
190
+ 1
191
+ I
192
+ 1
193
+ n
194
+ p
195
+ 4
196
+ x
197
+ 4
198
+ to_s
199
+ s
200
+ 1
201
+ #
202
+ M
203
+ 1
204
+ n
205
+ n
206
+ x
207
+ 9
208
+ __block__
209
+ i
210
+ 98
211
+ 5
212
+ 7
213
+ 0
214
+ 60
215
+ 53
216
+ 1
217
+ 44
218
+ 47
219
+ 2
220
+ 1
221
+ 14
222
+ 32
223
+ 0
224
+ 32
225
+ 0
226
+ 32
227
+ 0
228
+ 32
229
+ 3
230
+ 7
231
+ 3
232
+ 60
233
+ 32
234
+ 1
235
+ 32
236
+ 0
237
+ 7
238
+ 3
239
+ 60
240
+ 32
241
+ 1
242
+ 32
243
+ 3
244
+ 32
245
+ 0
246
+ 7
247
+ 3
248
+ 60
249
+ 32
250
+ 1
251
+ 7
252
+ 3
253
+ 60
254
+ 32
255
+ 1
256
+ 32
257
+ 3
258
+ 7
259
+ 3
260
+ 60
261
+ 7
262
+ 4
263
+ 60
264
+ 32
265
+ 2
266
+ 7
267
+ 5
268
+ 60
269
+ 7
270
+ 6
271
+ 60
272
+ 32
273
+ 2
274
+ 7
275
+ 3
276
+ 60
277
+ 7
278
+ 4
279
+ 60
280
+ 7
281
+ 5
282
+ 60
283
+ 7
284
+ 6
285
+ 60
286
+ 32
287
+ 4
288
+ 32
289
+ 3
290
+ 32
291
+ 4
292
+ 53
293
+ 7
294
+ 47
295
+ 8
296
+ 0
297
+ 14
298
+ 5
299
+ 7
300
+ 9
301
+ 60
302
+ 53
303
+ 10
304
+ 44
305
+ 47
306
+ 11
307
+ 1
308
+ 11
309
+ I
310
+ a
311
+ I
312
+ 0
313
+ I
314
+ -1
315
+ I
316
+ -1
317
+ n
318
+ p
319
+ 12
320
+ s
321
+ 46
322
+ doesn't run out of stack space on a really big
323
+ M
324
+ 1
325
+ n
326
+ n
327
+ x
328
+ 9
329
+ __block__
330
+ i
331
+ 38
332
+ 5
333
+ 53
334
+ 0
335
+ 44
336
+ 47
337
+ 1
338
+ 0
339
+ 14
340
+ 5
341
+ 7
342
+ 2
343
+ 60
344
+ 53
345
+ 3
346
+ 44
347
+ 47
348
+ 4
349
+ 1
350
+ 14
351
+ 5
352
+ 7
353
+ 5
354
+ 60
355
+ 53
356
+ 6
357
+ 44
358
+ 47
359
+ 4
360
+ 1
361
+ 14
362
+ 5
363
+ 53
364
+ 7
365
+ 44
366
+ 47
367
+ 8
368
+ 0
369
+ 11
370
+ I
371
+ 4
372
+ I
373
+ 0
374
+ I
375
+ -1
376
+ I
377
+ -1
378
+ n
379
+ p
380
+ 9
381
+ M
382
+ 1
383
+ n
384
+ n
385
+ x
386
+ 9
387
+ __block__
388
+ i
389
+ 12
390
+ 42
391
+ 0
392
+ 1
393
+ 74
394
+ 7
395
+ 2
396
+ 46
397
+ 3
398
+ 2
399
+ 35
400
+ 4
401
+ 11
402
+ I
403
+ 4
404
+ I
405
+ 0
406
+ I
407
+ -1
408
+ I
409
+ -1
410
+ n
411
+ p
412
+ 5
413
+ x
414
+ 7
415
+ Hamster
416
+ n
417
+ I
418
+ 2710
419
+ x
420
+ 8
421
+ interval
422
+ x
423
+ 9
424
+ @interval
425
+ p
426
+ 5
427
+ I
428
+ 0
429
+ I
430
+ d
431
+ I
432
+ 0
433
+ I
434
+ e
435
+ I
436
+ c
437
+ x
438
+ 34
439
+ ./spec/hamster/list/append_spec.rb
440
+ p
441
+ 0
442
+ x
443
+ 6
444
+ before
445
+ s
446
+ 8
447
+ interval
448
+ M
449
+ 1
450
+ n
451
+ n
452
+ x
453
+ 9
454
+ __block__
455
+ i
456
+ 7
457
+ 36
458
+ 0
459
+ 35
460
+ 1
461
+ 35
462
+ 2
463
+ 11
464
+ I
465
+ 2
466
+ I
467
+ 0
468
+ I
469
+ -1
470
+ I
471
+ -1
472
+ n
473
+ p
474
+ 3
475
+ x
476
+ 9
477
+ @interval
478
+ x
479
+ 2
480
+ @b
481
+ x
482
+ 2
483
+ @a
484
+ p
485
+ 5
486
+ I
487
+ 0
488
+ I
489
+ 11
490
+ I
491
+ 0
492
+ I
493
+ 12
494
+ I
495
+ 7
496
+ x
497
+ 34
498
+ ./spec/hamster/list/append_spec.rb
499
+ p
500
+ 0
501
+ x
502
+ 2
503
+ it
504
+ s
505
+ 4
506
+ list
507
+ M
508
+ 1
509
+ n
510
+ n
511
+ x
512
+ 9
513
+ __block__
514
+ i
515
+ 17
516
+ 36
517
+ 0
518
+ 42
519
+ 1
520
+ 2
521
+ 45
522
+ 3
523
+ 53
524
+ 4
525
+ 47
526
+ 5
527
+ 1
528
+ 35
529
+ 6
530
+ 35
531
+ 7
532
+ 11
533
+ I
534
+ 4
535
+ I
536
+ 0
537
+ I
538
+ -1
539
+ I
540
+ -1
541
+ n
542
+ p
543
+ 8
544
+ x
545
+ 9
546
+ @interval
547
+ x
548
+ 7
549
+ Hamster
550
+ n
551
+ x
552
+ 4
553
+ list
554
+ M
555
+ 1
556
+ n
557
+ n
558
+ x
559
+ 9
560
+ __block__
561
+ i
562
+ 19
563
+ 55
564
+ 33
565
+ 34
566
+ 17
567
+ 0
568
+ 14
569
+ 34
570
+ 17
571
+ 1
572
+ 14
573
+ 14
574
+ 18
575
+ 0
576
+ 18
577
+ 1
578
+ 46
579
+ 0
580
+ 1
581
+ 11
582
+ I
583
+ 5
584
+ I
585
+ 2
586
+ I
587
+ 2
588
+ I
589
+ 2
590
+ n
591
+ p
592
+ 1
593
+ x
594
+ 4
595
+ cons
596
+ p
597
+ 3
598
+ I
599
+ 0
600
+ I
601
+ 16
602
+ I
603
+ 13
604
+ x
605
+ 34
606
+ ./spec/hamster/list/append_spec.rb
607
+ p
608
+ 2
609
+ x
610
+ 4
611
+ list
612
+ x
613
+ 1
614
+ i
615
+ x
616
+ 6
617
+ reduce
618
+ x
619
+ 2
620
+ @b
621
+ x
622
+ 2
623
+ @a
624
+ p
625
+ 5
626
+ I
627
+ 0
628
+ I
629
+ 15
630
+ I
631
+ 0
632
+ I
633
+ 16
634
+ I
635
+ 11
636
+ x
637
+ 34
638
+ ./spec/hamster/list/append_spec.rb
639
+ p
640
+ 0
641
+ M
642
+ 1
643
+ n
644
+ n
645
+ x
646
+ 9
647
+ __block__
648
+ i
649
+ 11
650
+ 36
651
+ 0
652
+ 19
653
+ 3
654
+ 0
655
+ 36
656
+ 1
657
+ 46
658
+ 2
659
+ 2
660
+ 11
661
+ I
662
+ 4
663
+ I
664
+ 0
665
+ I
666
+ -1
667
+ I
668
+ -1
669
+ n
670
+ p
671
+ 3
672
+ x
673
+ 2
674
+ @a
675
+ x
676
+ 2
677
+ @b
678
+ x
679
+ 4
680
+ send
681
+ p
682
+ 5
683
+ I
684
+ 0
685
+ I
686
+ 19
687
+ I
688
+ 0
689
+ I
690
+ 1a
691
+ I
692
+ b
693
+ x
694
+ 34
695
+ ./spec/hamster/list/append_spec.rb
696
+ p
697
+ 0
698
+ x
699
+ 5
700
+ after
701
+ p
702
+ 11
703
+ I
704
+ 0
705
+ I
706
+ b
707
+ I
708
+ 0
709
+ I
710
+ d
711
+ I
712
+ 8
713
+ I
714
+ 11
715
+ I
716
+ 13
717
+ I
718
+ 15
719
+ I
720
+ 1e
721
+ I
722
+ 19
723
+ I
724
+ 26
725
+ x
726
+ 34
727
+ ./spec/hamster/list/append_spec.rb
728
+ p
729
+ 0
730
+ x
731
+ 8
732
+ describe
733
+ s
734
+ 1
735
+ A
736
+ s
737
+ 1
738
+ B
739
+ s
740
+ 1
741
+ C
742
+ s
743
+ 1
744
+ D
745
+ M
746
+ 1
747
+ n
748
+ n
749
+ x
750
+ 9
751
+ __block__
752
+ i
753
+ 46
754
+ 55
755
+ 33
756
+ 34
757
+ 17
758
+ 0
759
+ 14
760
+ 34
761
+ 17
762
+ 1
763
+ 14
764
+ 34
765
+ 17
766
+ 2
767
+ 14
768
+ 14
769
+ 5
770
+ 18
771
+ 1
772
+ 45
773
+ 0
774
+ 44
775
+ 45
776
+ 1
777
+ 7
778
+ 2
779
+ 60
780
+ 18
781
+ 0
782
+ 45
783
+ 0
784
+ 44
785
+ 45
786
+ 1
787
+ 7
788
+ 3
789
+ 60
790
+ 59
791
+ 59
792
+ 59
793
+ 53
794
+ 4
795
+ 44
796
+ 47
797
+ 5
798
+ 1
799
+ 11
800
+ I
801
+ 9
802
+ I
803
+ 3
804
+ I
805
+ 3
806
+ I
807
+ 3
808
+ n
809
+ p
810
+ 6
811
+ x
812
+ 7
813
+ inspect
814
+ x
815
+ 4
816
+ to_s
817
+ s
818
+ 5
819
+ and
820
+ s
821
+ 3
822
+ on
823
+ M
824
+ 1
825
+ n
826
+ n
827
+ x
828
+ 9
829
+ __block__
830
+ i
831
+ 50
832
+ 5
833
+ 53
834
+ 0
835
+ 44
836
+ 47
837
+ 1
838
+ 0
839
+ 14
840
+ 5
841
+ 7
842
+ 2
843
+ 60
844
+ 53
845
+ 3
846
+ 44
847
+ 47
848
+ 4
849
+ 1
850
+ 14
851
+ 5
852
+ 7
853
+ 5
854
+ 60
855
+ 53
856
+ 6
857
+ 44
858
+ 47
859
+ 4
860
+ 1
861
+ 14
862
+ 5
863
+ 19
864
+ 1
865
+ 2
866
+ 45
867
+ 7
868
+ 44
869
+ 45
870
+ 8
871
+ 7
872
+ 9
873
+ 60
874
+ 59
875
+ 53
876
+ 10
877
+ 44
878
+ 47
879
+ 4
880
+ 1
881
+ 11
882
+ I
883
+ 4
884
+ I
885
+ 0
886
+ I
887
+ -1
888
+ I
889
+ -1
890
+ n
891
+ p
892
+ 11
893
+ M
894
+ 1
895
+ n
896
+ n
897
+ x
898
+ 9
899
+ __block__
900
+ i
901
+ 38
902
+ 42
903
+ 0
904
+ 1
905
+ 19
906
+ 2
907
+ 0
908
+ 33
909
+ 1
910
+ 48
911
+ 2
912
+ 0
913
+ 35
914
+ 3
915
+ 14
916
+ 42
917
+ 0
918
+ 4
919
+ 19
920
+ 2
921
+ 1
922
+ 33
923
+ 1
924
+ 48
925
+ 2
926
+ 0
927
+ 35
928
+ 5
929
+ 14
930
+ 36
931
+ 3
932
+ 36
933
+ 5
934
+ 46
935
+ 6
936
+ 1
937
+ 35
938
+ 7
939
+ 11
940
+ I
941
+ 4
942
+ I
943
+ 0
944
+ I
945
+ -1
946
+ I
947
+ -1
948
+ n
949
+ p
950
+ 8
951
+ x
952
+ 7
953
+ Hamster
954
+ n
955
+ x
956
+ 4
957
+ list
958
+ x
959
+ 5
960
+ @left
961
+ n
962
+ x
963
+ 6
964
+ @right
965
+ x
966
+ 6
967
+ append
968
+ x
969
+ 7
970
+ @result
971
+ p
972
+ 9
973
+ I
974
+ 0
975
+ I
976
+ 28
977
+ I
978
+ 0
979
+ I
980
+ 29
981
+ I
982
+ e
983
+ I
984
+ 2a
985
+ I
986
+ 1c
987
+ I
988
+ 2b
989
+ I
990
+ 26
991
+ x
992
+ 34
993
+ ./spec/hamster/list/append_spec.rb
994
+ p
995
+ 0
996
+ x
997
+ 6
998
+ before
999
+ s
1000
+ 18
1001
+ preserves the left
1002
+ M
1003
+ 1
1004
+ n
1005
+ n
1006
+ x
1007
+ 9
1008
+ __block__
1009
+ i
1010
+ 18
1011
+ 36
1012
+ 0
1013
+ 45
1014
+ 1
1015
+ 42
1016
+ 2
1017
+ 3
1018
+ 19
1019
+ 2
1020
+ 0
1021
+ 33
1022
+ 1
1023
+ 48
1024
+ 4
1025
+ 0
1026
+ 79
1027
+ 5
1028
+ 11
1029
+ I
1030
+ 5
1031
+ I
1032
+ 0
1033
+ I
1034
+ -1
1035
+ I
1036
+ -1
1037
+ n
1038
+ p
1039
+ 6
1040
+ x
1041
+ 5
1042
+ @left
1043
+ x
1044
+ 6
1045
+ should
1046
+ x
1047
+ 7
1048
+ Hamster
1049
+ n
1050
+ x
1051
+ 4
1052
+ list
1053
+ x
1054
+ 2
1055
+ ==
1056
+ p
1057
+ 5
1058
+ I
1059
+ 0
1060
+ I
1061
+ 2e
1062
+ I
1063
+ 0
1064
+ I
1065
+ 2f
1066
+ I
1067
+ 12
1068
+ x
1069
+ 34
1070
+ ./spec/hamster/list/append_spec.rb
1071
+ p
1072
+ 0
1073
+ x
1074
+ 2
1075
+ it
1076
+ s
1077
+ 19
1078
+ preserves the right
1079
+ M
1080
+ 1
1081
+ n
1082
+ n
1083
+ x
1084
+ 9
1085
+ __block__
1086
+ i
1087
+ 18
1088
+ 36
1089
+ 0
1090
+ 45
1091
+ 1
1092
+ 42
1093
+ 2
1094
+ 3
1095
+ 19
1096
+ 2
1097
+ 1
1098
+ 33
1099
+ 1
1100
+ 48
1101
+ 4
1102
+ 0
1103
+ 79
1104
+ 5
1105
+ 11
1106
+ I
1107
+ 5
1108
+ I
1109
+ 0
1110
+ I
1111
+ -1
1112
+ I
1113
+ -1
1114
+ n
1115
+ p
1116
+ 6
1117
+ x
1118
+ 6
1119
+ @right
1120
+ x
1121
+ 6
1122
+ should
1123
+ x
1124
+ 7
1125
+ Hamster
1126
+ n
1127
+ x
1128
+ 4
1129
+ list
1130
+ x
1131
+ 2
1132
+ ==
1133
+ p
1134
+ 5
1135
+ I
1136
+ 0
1137
+ I
1138
+ 32
1139
+ I
1140
+ 0
1141
+ I
1142
+ 33
1143
+ I
1144
+ 12
1145
+ x
1146
+ 34
1147
+ ./spec/hamster/list/append_spec.rb
1148
+ p
1149
+ 0
1150
+ x
1151
+ 7
1152
+ inspect
1153
+ x
1154
+ 4
1155
+ to_s
1156
+ s
1157
+ 8
1158
+ returns
1159
+ M
1160
+ 1
1161
+ n
1162
+ n
1163
+ x
1164
+ 9
1165
+ __block__
1166
+ i
1167
+ 18
1168
+ 36
1169
+ 0
1170
+ 45
1171
+ 1
1172
+ 42
1173
+ 2
1174
+ 3
1175
+ 19
1176
+ 2
1177
+ 2
1178
+ 33
1179
+ 1
1180
+ 48
1181
+ 4
1182
+ 0
1183
+ 79
1184
+ 5
1185
+ 11
1186
+ I
1187
+ 5
1188
+ I
1189
+ 0
1190
+ I
1191
+ -1
1192
+ I
1193
+ -1
1194
+ n
1195
+ p
1196
+ 6
1197
+ x
1198
+ 7
1199
+ @result
1200
+ x
1201
+ 6
1202
+ should
1203
+ x
1204
+ 7
1205
+ Hamster
1206
+ n
1207
+ x
1208
+ 4
1209
+ list
1210
+ x
1211
+ 2
1212
+ ==
1213
+ p
1214
+ 5
1215
+ I
1216
+ 0
1217
+ I
1218
+ 36
1219
+ I
1220
+ 0
1221
+ I
1222
+ 37
1223
+ I
1224
+ 12
1225
+ x
1226
+ 34
1227
+ ./spec/hamster/list/append_spec.rb
1228
+ p
1229
+ 0
1230
+ p
1231
+ 11
1232
+ I
1233
+ 0
1234
+ I
1235
+ 26
1236
+ I
1237
+ 0
1238
+ I
1239
+ 28
1240
+ I
1241
+ 8
1242
+ I
1243
+ 2e
1244
+ I
1245
+ 13
1246
+ I
1247
+ 32
1248
+ I
1249
+ 1e
1250
+ I
1251
+ 36
1252
+ I
1253
+ 32
1254
+ x
1255
+ 34
1256
+ ./spec/hamster/list/append_spec.rb
1257
+ p
1258
+ 0
1259
+ x
1260
+ 8
1261
+ describe
1262
+ p
1263
+ 7
1264
+ I
1265
+ 0
1266
+ I
1267
+ 20
1268
+ I
1269
+ 3
1270
+ I
1271
+ 24
1272
+ I
1273
+ f
1274
+ I
1275
+ 26
1276
+ I
1277
+ 2e
1278
+ x
1279
+ 34
1280
+ ./spec/hamster/list/append_spec.rb
1281
+ p
1282
+ 3
1283
+ x
1284
+ 11
1285
+ left_values
1286
+ x
1287
+ 12
1288
+ right_values
1289
+ x
1290
+ 8
1291
+ expected
1292
+ x
1293
+ 4
1294
+ each
1295
+ s
1296
+ 7
1297
+ is lazy
1298
+ M
1299
+ 1
1300
+ n
1301
+ n
1302
+ x
1303
+ 9
1304
+ __block__
1305
+ i
1306
+ 34
1307
+ 74
1308
+ 17
1309
+ 0
1310
+ 14
1311
+ 42
1312
+ 0
1313
+ 1
1314
+ 53
1315
+ 2
1316
+ 47
1317
+ 3
1318
+ 0
1319
+ 42
1320
+ 0
1321
+ 4
1322
+ 7
1323
+ 5
1324
+ 60
1325
+ 46
1326
+ 6
1327
+ 1
1328
+ 46
1329
+ 7
1330
+ 1
1331
+ 14
1332
+ 18
1333
+ 0
1334
+ 45
1335
+ 8
1336
+ 75
1337
+ 46
1338
+ 9
1339
+ 1
1340
+ 11
1341
+ I
1342
+ 5
1343
+ I
1344
+ 1
1345
+ I
1346
+ -1
1347
+ I
1348
+ -1
1349
+ n
1350
+ p
1351
+ 10
1352
+ x
1353
+ 7
1354
+ Hamster
1355
+ n
1356
+ M
1357
+ 1
1358
+ n
1359
+ n
1360
+ x
1361
+ 9
1362
+ __block__
1363
+ i
1364
+ 10
1365
+ 19
1366
+ 1
1367
+ 0
1368
+ 75
1369
+ 77
1370
+ 0
1371
+ 20
1372
+ 1
1373
+ 0
1374
+ 11
1375
+ I
1376
+ 3
1377
+ I
1378
+ 0
1379
+ I
1380
+ -1
1381
+ I
1382
+ -1
1383
+ n
1384
+ p
1385
+ 1
1386
+ x
1387
+ 1
1388
+ +
1389
+ p
1390
+ 3
1391
+ I
1392
+ 0
1393
+ I
1394
+ 40
1395
+ I
1396
+ a
1397
+ x
1398
+ 34
1399
+ ./spec/hamster/list/append_spec.rb
1400
+ p
1401
+ 0
1402
+ x
1403
+ 6
1404
+ stream
1405
+ n
1406
+ s
1407
+ 1
1408
+ A
1409
+ x
1410
+ 4
1411
+ list
1412
+ x
1413
+ 6
1414
+ append
1415
+ x
1416
+ 6
1417
+ should
1418
+ x
1419
+ 2
1420
+ <=
1421
+ p
1422
+ 9
1423
+ I
1424
+ 0
1425
+ I
1426
+ 3e
1427
+ I
1428
+ 0
1429
+ I
1430
+ 3f
1431
+ I
1432
+ 4
1433
+ I
1434
+ 40
1435
+ I
1436
+ 19
1437
+ I
1438
+ 41
1439
+ I
1440
+ 22
1441
+ x
1442
+ 34
1443
+ ./spec/hamster/list/append_spec.rb
1444
+ p
1445
+ 1
1446
+ x
1447
+ 5
1448
+ count
1449
+ x
1450
+ 2
1451
+ it
1452
+ p
1453
+ 15
1454
+ I
1455
+ 0
1456
+ I
1457
+ 9
1458
+ I
1459
+ 0
1460
+ I
1461
+ b
1462
+ I
1463
+ b
1464
+ I
1465
+ 20
1466
+ I
1467
+ 13
1468
+ I
1469
+ 21
1470
+ I
1471
+ 21
1472
+ I
1473
+ 22
1474
+ I
1475
+ 2f
1476
+ I
1477
+ 23
1478
+ I
1479
+ 57
1480
+ I
1481
+ 3e
1482
+ I
1483
+ 62
1484
+ x
1485
+ 34
1486
+ ./spec/hamster/list/append_spec.rb
1487
+ p
1488
+ 0
1489
+ x
1490
+ 8
1491
+ describe
1492
+ p
1493
+ 5
1494
+ I
1495
+ 0
1496
+ I
1497
+ 7
1498
+ I
1499
+ 4
1500
+ I
1501
+ 9
1502
+ I
1503
+ 15
1504
+ x
1505
+ 34
1506
+ ./spec/hamster/list/append_spec.rb
1507
+ p
1508
+ 1
1509
+ x
1510
+ 6
1511
+ method
1512
+ x
1513
+ 4
1514
+ each
1515
+ p
1516
+ 5
1517
+ I
1518
+ 0
1519
+ I
1520
+ 5
1521
+ I
1522
+ 0
1523
+ I
1524
+ 7
1525
+ I
1526
+ 10
1527
+ x
1528
+ 34
1529
+ ./spec/hamster/list/append_spec.rb
1530
+ p
1531
+ 0
1532
+ x
1533
+ 8
1534
+ describe
1535
+ p
1536
+ 7
1537
+ I
1538
+ 0
1539
+ I
1540
+ 1
1541
+ I
1542
+ 1a
1543
+ I
1544
+ 3
1545
+ I
1546
+ 23
1547
+ I
1548
+ 5
1549
+ I
1550
+ 32
1551
+ x
1552
+ 34
1553
+ ./spec/hamster/list/append_spec.rb
1554
+ p
1555
+ 0