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,22 @@ describe Hamster::List do
8
8
 
9
9
  describe "##{method}" do
10
10
 
11
- describe "on a really big list" do
11
+ describe "doesn't run out of stack space on a really big" do
12
12
 
13
13
  before do
14
- @list = Hamster.interval(0, 10000)
14
+ @interval = Hamster.interval(0, 10000)
15
15
  end
16
16
 
17
- it "doesn't run out of stack space" do
18
- @list.any? { false }
17
+ it "stream" do
18
+ @list = @interval
19
+ end
20
+
21
+ it "list" do
22
+ @list = @interval.reduce(Hamster.list) { |list, i| list.cons(i) }
23
+ end
24
+
25
+ after do
26
+ @interval.any? { false }
19
27
  end
20
28
 
21
29
  end
@@ -0,0 +1,1888 @@
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
+ 14
116
+ 7
117
+ 0
118
+ 7
119
+ 1
120
+ 7
121
+ 2
122
+ 32
123
+ 3
124
+ 53
125
+ 3
126
+ 47
127
+ 4
128
+ 0
129
+ 11
130
+ I
131
+ 4
132
+ I
133
+ 0
134
+ I
135
+ -1
136
+ I
137
+ -1
138
+ n
139
+ p
140
+ 5
141
+ x
142
+ 4
143
+ any?
144
+ x
145
+ 6
146
+ exist?
147
+ x
148
+ 7
149
+ exists?
150
+ M
151
+ 1
152
+ n
153
+ n
154
+ x
155
+ 9
156
+ __block__
157
+ i
158
+ 21
159
+ 54
160
+ 17
161
+ 0
162
+ 14
163
+ 5
164
+ 18
165
+ 0
166
+ 44
167
+ 45
168
+ 0
169
+ 7
170
+ 1
171
+ 60
172
+ 59
173
+ 53
174
+ 2
175
+ 44
176
+ 47
177
+ 3
178
+ 1
179
+ 11
180
+ I
181
+ 5
182
+ I
183
+ 1
184
+ I
185
+ 1
186
+ I
187
+ 1
188
+ n
189
+ p
190
+ 4
191
+ x
192
+ 4
193
+ to_s
194
+ s
195
+ 1
196
+ #
197
+ M
198
+ 1
199
+ n
200
+ n
201
+ x
202
+ 9
203
+ __block__
204
+ i
205
+ 33
206
+ 5
207
+ 7
208
+ 0
209
+ 60
210
+ 53
211
+ 1
212
+ 44
213
+ 47
214
+ 2
215
+ 1
216
+ 14
217
+ 5
218
+ 7
219
+ 3
220
+ 60
221
+ 53
222
+ 4
223
+ 44
224
+ 47
225
+ 2
226
+ 1
227
+ 14
228
+ 5
229
+ 7
230
+ 5
231
+ 60
232
+ 53
233
+ 6
234
+ 44
235
+ 47
236
+ 2
237
+ 1
238
+ 11
239
+ I
240
+ 4
241
+ I
242
+ 0
243
+ I
244
+ -1
245
+ I
246
+ -1
247
+ n
248
+ p
249
+ 7
250
+ s
251
+ 46
252
+ doesn't run out of stack space on a really big
253
+ M
254
+ 1
255
+ n
256
+ n
257
+ x
258
+ 9
259
+ __block__
260
+ i
261
+ 38
262
+ 5
263
+ 53
264
+ 0
265
+ 44
266
+ 47
267
+ 1
268
+ 0
269
+ 14
270
+ 5
271
+ 7
272
+ 2
273
+ 60
274
+ 53
275
+ 3
276
+ 44
277
+ 47
278
+ 4
279
+ 1
280
+ 14
281
+ 5
282
+ 7
283
+ 5
284
+ 60
285
+ 53
286
+ 6
287
+ 44
288
+ 47
289
+ 4
290
+ 1
291
+ 14
292
+ 5
293
+ 53
294
+ 7
295
+ 44
296
+ 47
297
+ 8
298
+ 0
299
+ 11
300
+ I
301
+ 4
302
+ I
303
+ 0
304
+ I
305
+ -1
306
+ I
307
+ -1
308
+ n
309
+ p
310
+ 9
311
+ M
312
+ 1
313
+ n
314
+ n
315
+ x
316
+ 9
317
+ __block__
318
+ i
319
+ 12
320
+ 42
321
+ 0
322
+ 1
323
+ 74
324
+ 7
325
+ 2
326
+ 46
327
+ 3
328
+ 2
329
+ 35
330
+ 4
331
+ 11
332
+ I
333
+ 4
334
+ I
335
+ 0
336
+ I
337
+ -1
338
+ I
339
+ -1
340
+ n
341
+ p
342
+ 5
343
+ x
344
+ 7
345
+ Hamster
346
+ n
347
+ I
348
+ 2710
349
+ x
350
+ 8
351
+ interval
352
+ x
353
+ 9
354
+ @interval
355
+ p
356
+ 5
357
+ I
358
+ 0
359
+ I
360
+ d
361
+ I
362
+ 0
363
+ I
364
+ e
365
+ I
366
+ c
367
+ x
368
+ 31
369
+ ./spec/hamster/list/any_spec.rb
370
+ p
371
+ 0
372
+ x
373
+ 6
374
+ before
375
+ s
376
+ 8
377
+ interval
378
+ M
379
+ 1
380
+ n
381
+ n
382
+ x
383
+ 9
384
+ __block__
385
+ i
386
+ 5
387
+ 36
388
+ 0
389
+ 35
390
+ 1
391
+ 11
392
+ I
393
+ 2
394
+ I
395
+ 0
396
+ I
397
+ -1
398
+ I
399
+ -1
400
+ n
401
+ p
402
+ 2
403
+ x
404
+ 9
405
+ @interval
406
+ x
407
+ 5
408
+ @list
409
+ p
410
+ 5
411
+ I
412
+ 0
413
+ I
414
+ 11
415
+ I
416
+ 0
417
+ I
418
+ 12
419
+ I
420
+ 5
421
+ x
422
+ 31
423
+ ./spec/hamster/list/any_spec.rb
424
+ p
425
+ 0
426
+ x
427
+ 2
428
+ it
429
+ s
430
+ 4
431
+ list
432
+ M
433
+ 1
434
+ n
435
+ n
436
+ x
437
+ 9
438
+ __block__
439
+ i
440
+ 15
441
+ 36
442
+ 0
443
+ 42
444
+ 1
445
+ 2
446
+ 45
447
+ 3
448
+ 53
449
+ 4
450
+ 47
451
+ 5
452
+ 1
453
+ 35
454
+ 6
455
+ 11
456
+ I
457
+ 4
458
+ I
459
+ 0
460
+ I
461
+ -1
462
+ I
463
+ -1
464
+ n
465
+ p
466
+ 7
467
+ x
468
+ 9
469
+ @interval
470
+ x
471
+ 7
472
+ Hamster
473
+ n
474
+ x
475
+ 4
476
+ list
477
+ M
478
+ 1
479
+ n
480
+ n
481
+ x
482
+ 9
483
+ __block__
484
+ i
485
+ 19
486
+ 55
487
+ 33
488
+ 34
489
+ 17
490
+ 0
491
+ 14
492
+ 34
493
+ 17
494
+ 1
495
+ 14
496
+ 14
497
+ 18
498
+ 0
499
+ 18
500
+ 1
501
+ 46
502
+ 0
503
+ 1
504
+ 11
505
+ I
506
+ 5
507
+ I
508
+ 2
509
+ I
510
+ 2
511
+ I
512
+ 2
513
+ n
514
+ p
515
+ 1
516
+ x
517
+ 4
518
+ cons
519
+ p
520
+ 3
521
+ I
522
+ 0
523
+ I
524
+ 16
525
+ I
526
+ 13
527
+ x
528
+ 31
529
+ ./spec/hamster/list/any_spec.rb
530
+ p
531
+ 2
532
+ x
533
+ 4
534
+ list
535
+ x
536
+ 1
537
+ i
538
+ x
539
+ 6
540
+ reduce
541
+ x
542
+ 5
543
+ @list
544
+ p
545
+ 5
546
+ I
547
+ 0
548
+ I
549
+ 15
550
+ I
551
+ 0
552
+ I
553
+ 16
554
+ I
555
+ f
556
+ x
557
+ 31
558
+ ./spec/hamster/list/any_spec.rb
559
+ p
560
+ 0
561
+ M
562
+ 1
563
+ n
564
+ n
565
+ x
566
+ 9
567
+ __block__
568
+ i
569
+ 8
570
+ 36
571
+ 0
572
+ 53
573
+ 1
574
+ 47
575
+ 2
576
+ 0
577
+ 11
578
+ I
579
+ 3
580
+ I
581
+ 0
582
+ I
583
+ -1
584
+ I
585
+ -1
586
+ n
587
+ p
588
+ 3
589
+ x
590
+ 9
591
+ @interval
592
+ M
593
+ 1
594
+ n
595
+ n
596
+ x
597
+ 9
598
+ __block__
599
+ i
600
+ 2
601
+ 3
602
+ 11
603
+ I
604
+ 2
605
+ I
606
+ 0
607
+ I
608
+ -1
609
+ I
610
+ -1
611
+ n
612
+ p
613
+ 0
614
+ p
615
+ 3
616
+ I
617
+ 0
618
+ I
619
+ 1a
620
+ I
621
+ 2
622
+ x
623
+ 31
624
+ ./spec/hamster/list/any_spec.rb
625
+ p
626
+ 0
627
+ x
628
+ 4
629
+ any?
630
+ p
631
+ 5
632
+ I
633
+ 0
634
+ I
635
+ 19
636
+ I
637
+ 0
638
+ I
639
+ 1a
640
+ I
641
+ 8
642
+ x
643
+ 31
644
+ ./spec/hamster/list/any_spec.rb
645
+ p
646
+ 0
647
+ x
648
+ 5
649
+ after
650
+ p
651
+ 11
652
+ I
653
+ 0
654
+ I
655
+ b
656
+ I
657
+ 0
658
+ I
659
+ d
660
+ I
661
+ 8
662
+ I
663
+ 11
664
+ I
665
+ 13
666
+ I
667
+ 15
668
+ I
669
+ 1e
670
+ I
671
+ 19
672
+ I
673
+ 26
674
+ x
675
+ 31
676
+ ./spec/hamster/list/any_spec.rb
677
+ p
678
+ 0
679
+ x
680
+ 8
681
+ describe
682
+ s
683
+ 10
684
+ when empty
685
+ M
686
+ 1
687
+ n
688
+ n
689
+ x
690
+ 9
691
+ __block__
692
+ i
693
+ 30
694
+ 5
695
+ 53
696
+ 0
697
+ 44
698
+ 47
699
+ 1
700
+ 0
701
+ 14
702
+ 5
703
+ 7
704
+ 2
705
+ 60
706
+ 53
707
+ 3
708
+ 44
709
+ 47
710
+ 4
711
+ 1
712
+ 14
713
+ 5
714
+ 7
715
+ 5
716
+ 60
717
+ 53
718
+ 6
719
+ 44
720
+ 47
721
+ 4
722
+ 1
723
+ 11
724
+ I
725
+ 4
726
+ I
727
+ 0
728
+ I
729
+ -1
730
+ I
731
+ -1
732
+ n
733
+ p
734
+ 7
735
+ M
736
+ 1
737
+ n
738
+ n
739
+ x
740
+ 9
741
+ __block__
742
+ i
743
+ 8
744
+ 42
745
+ 0
746
+ 1
747
+ 45
748
+ 2
749
+ 35
750
+ 3
751
+ 11
752
+ I
753
+ 2
754
+ I
755
+ 0
756
+ I
757
+ -1
758
+ I
759
+ -1
760
+ n
761
+ p
762
+ 4
763
+ x
764
+ 7
765
+ Hamster
766
+ n
767
+ x
768
+ 4
769
+ list
770
+ x
771
+ 5
772
+ @list
773
+ p
774
+ 5
775
+ I
776
+ 0
777
+ I
778
+ 21
779
+ I
780
+ 0
781
+ I
782
+ 22
783
+ I
784
+ 8
785
+ x
786
+ 31
787
+ ./spec/hamster/list/any_spec.rb
788
+ p
789
+ 0
790
+ x
791
+ 6
792
+ before
793
+ s
794
+ 26
795
+ with a block returns false
796
+ M
797
+ 1
798
+ n
799
+ n
800
+ x
801
+ 9
802
+ __block__
803
+ i
804
+ 18
805
+ 36
806
+ 0
807
+ 19
808
+ 3
809
+ 0
810
+ 53
811
+ 1
812
+ 47
813
+ 2
814
+ 1
815
+ 5
816
+ 44
817
+ 45
818
+ 3
819
+ 46
820
+ 4
821
+ 1
822
+ 11
823
+ I
824
+ 4
825
+ I
826
+ 0
827
+ I
828
+ -1
829
+ I
830
+ -1
831
+ n
832
+ p
833
+ 5
834
+ x
835
+ 5
836
+ @list
837
+ M
838
+ 1
839
+ n
840
+ n
841
+ x
842
+ 9
843
+ __block__
844
+ i
845
+ 2
846
+ 1
847
+ 11
848
+ I
849
+ 2
850
+ I
851
+ 0
852
+ I
853
+ -1
854
+ I
855
+ -1
856
+ n
857
+ p
858
+ 0
859
+ p
860
+ 3
861
+ I
862
+ 0
863
+ I
864
+ 26
865
+ I
866
+ 2
867
+ x
868
+ 31
869
+ ./spec/hamster/list/any_spec.rb
870
+ p
871
+ 0
872
+ x
873
+ 4
874
+ send
875
+ x
876
+ 8
877
+ be_false
878
+ x
879
+ 6
880
+ should
881
+ p
882
+ 5
883
+ I
884
+ 0
885
+ I
886
+ 25
887
+ I
888
+ 0
889
+ I
890
+ 26
891
+ I
892
+ 12
893
+ x
894
+ 31
895
+ ./spec/hamster/list/any_spec.rb
896
+ p
897
+ 0
898
+ x
899
+ 2
900
+ it
901
+ s
902
+ 27
903
+ with no block returns false
904
+ M
905
+ 1
906
+ n
907
+ n
908
+ x
909
+ 9
910
+ __block__
911
+ i
912
+ 16
913
+ 36
914
+ 0
915
+ 19
916
+ 3
917
+ 0
918
+ 46
919
+ 1
920
+ 1
921
+ 5
922
+ 44
923
+ 45
924
+ 2
925
+ 46
926
+ 3
927
+ 1
928
+ 11
929
+ I
930
+ 3
931
+ I
932
+ 0
933
+ I
934
+ -1
935
+ I
936
+ -1
937
+ n
938
+ p
939
+ 4
940
+ x
941
+ 5
942
+ @list
943
+ x
944
+ 4
945
+ send
946
+ x
947
+ 8
948
+ be_false
949
+ x
950
+ 6
951
+ should
952
+ p
953
+ 5
954
+ I
955
+ 0
956
+ I
957
+ 29
958
+ I
959
+ 0
960
+ I
961
+ 2a
962
+ I
963
+ 10
964
+ x
965
+ 31
966
+ ./spec/hamster/list/any_spec.rb
967
+ p
968
+ 0
969
+ p
970
+ 9
971
+ I
972
+ 0
973
+ I
974
+ 1f
975
+ I
976
+ 0
977
+ I
978
+ 21
979
+ I
980
+ 8
981
+ I
982
+ 25
983
+ I
984
+ 13
985
+ I
986
+ 29
987
+ I
988
+ 1e
989
+ x
990
+ 31
991
+ ./spec/hamster/list/any_spec.rb
992
+ p
993
+ 0
994
+ s
995
+ 14
996
+ when not empty
997
+ M
998
+ 1
999
+ n
1000
+ n
1001
+ x
1002
+ 9
1003
+ __block__
1004
+ i
1005
+ 22
1006
+ 5
1007
+ 7
1008
+ 0
1009
+ 60
1010
+ 53
1011
+ 1
1012
+ 44
1013
+ 47
1014
+ 2
1015
+ 1
1016
+ 14
1017
+ 5
1018
+ 7
1019
+ 3
1020
+ 60
1021
+ 53
1022
+ 4
1023
+ 44
1024
+ 47
1025
+ 2
1026
+ 1
1027
+ 11
1028
+ I
1029
+ 4
1030
+ I
1031
+ 0
1032
+ I
1033
+ -1
1034
+ I
1035
+ -1
1036
+ n
1037
+ p
1038
+ 5
1039
+ s
1040
+ 12
1041
+ with a block
1042
+ M
1043
+ 1
1044
+ n
1045
+ n
1046
+ x
1047
+ 9
1048
+ __block__
1049
+ i
1050
+ 37
1051
+ 5
1052
+ 53
1053
+ 0
1054
+ 44
1055
+ 47
1056
+ 1
1057
+ 0
1058
+ 14
1059
+ 7
1060
+ 2
1061
+ 60
1062
+ 7
1063
+ 3
1064
+ 60
1065
+ 7
1066
+ 4
1067
+ 60
1068
+ 1
1069
+ 32
1070
+ 4
1071
+ 53
1072
+ 5
1073
+ 47
1074
+ 6
1075
+ 0
1076
+ 14
1077
+ 5
1078
+ 7
1079
+ 7
1080
+ 60
1081
+ 53
1082
+ 8
1083
+ 44
1084
+ 47
1085
+ 9
1086
+ 1
1087
+ 11
1088
+ I
1089
+ 5
1090
+ I
1091
+ 0
1092
+ I
1093
+ -1
1094
+ I
1095
+ -1
1096
+ n
1097
+ p
1098
+ 10
1099
+ M
1100
+ 1
1101
+ n
1102
+ n
1103
+ x
1104
+ 9
1105
+ __block__
1106
+ i
1107
+ 19
1108
+ 42
1109
+ 0
1110
+ 1
1111
+ 7
1112
+ 2
1113
+ 60
1114
+ 7
1115
+ 3
1116
+ 60
1117
+ 7
1118
+ 4
1119
+ 60
1120
+ 1
1121
+ 46
1122
+ 5
1123
+ 4
1124
+ 35
1125
+ 6
1126
+ 11
1127
+ I
1128
+ 6
1129
+ I
1130
+ 0
1131
+ I
1132
+ -1
1133
+ I
1134
+ -1
1135
+ n
1136
+ p
1137
+ 7
1138
+ x
1139
+ 7
1140
+ Hamster
1141
+ n
1142
+ s
1143
+ 1
1144
+ A
1145
+ s
1146
+ 1
1147
+ B
1148
+ s
1149
+ 1
1150
+ C
1151
+ x
1152
+ 4
1153
+ list
1154
+ x
1155
+ 5
1156
+ @list
1157
+ p
1158
+ 5
1159
+ I
1160
+ 0
1161
+ I
1162
+ 33
1163
+ I
1164
+ 0
1165
+ I
1166
+ 34
1167
+ I
1168
+ 13
1169
+ x
1170
+ 31
1171
+ ./spec/hamster/list/any_spec.rb
1172
+ p
1173
+ 0
1174
+ x
1175
+ 6
1176
+ before
1177
+ s
1178
+ 1
1179
+ A
1180
+ s
1181
+ 1
1182
+ B
1183
+ s
1184
+ 1
1185
+ C
1186
+ M
1187
+ 1
1188
+ n
1189
+ n
1190
+ x
1191
+ 9
1192
+ __block__
1193
+ i
1194
+ 27
1195
+ 54
1196
+ 17
1197
+ 0
1198
+ 14
1199
+ 5
1200
+ 7
1201
+ 0
1202
+ 60
1203
+ 18
1204
+ 0
1205
+ 45
1206
+ 1
1207
+ 44
1208
+ 45
1209
+ 2
1210
+ 7
1211
+ 3
1212
+ 60
1213
+ 59
1214
+ 59
1215
+ 53
1216
+ 4
1217
+ 44
1218
+ 47
1219
+ 5
1220
+ 1
1221
+ 11
1222
+ I
1223
+ 6
1224
+ I
1225
+ 1
1226
+ I
1227
+ 1
1228
+ I
1229
+ 1
1230
+ n
1231
+ p
1232
+ 6
1233
+ s
1234
+ 1
1235
+ )
1236
+ x
1237
+ 7
1238
+ inspect
1239
+ x
1240
+ 4
1241
+ to_s
1242
+ s
1243
+ 45
1244
+ returns true if the block ever returns true (
1245
+ M
1246
+ 1
1247
+ n
1248
+ n
1249
+ x
1250
+ 9
1251
+ __block__
1252
+ i
1253
+ 18
1254
+ 36
1255
+ 0
1256
+ 19
1257
+ 5
1258
+ 0
1259
+ 53
1260
+ 1
1261
+ 47
1262
+ 2
1263
+ 1
1264
+ 5
1265
+ 44
1266
+ 45
1267
+ 3
1268
+ 46
1269
+ 4
1270
+ 1
1271
+ 11
1272
+ I
1273
+ 4
1274
+ I
1275
+ 0
1276
+ I
1277
+ -1
1278
+ I
1279
+ -1
1280
+ n
1281
+ p
1282
+ 5
1283
+ x
1284
+ 5
1285
+ @list
1286
+ M
1287
+ 1
1288
+ n
1289
+ n
1290
+ x
1291
+ 9
1292
+ __block__
1293
+ i
1294
+ 12
1295
+ 54
1296
+ 17
1297
+ 0
1298
+ 14
1299
+ 18
1300
+ 0
1301
+ 19
1302
+ 2
1303
+ 0
1304
+ 79
1305
+ 0
1306
+ 11
1307
+ I
1308
+ 4
1309
+ I
1310
+ 1
1311
+ I
1312
+ 1
1313
+ I
1314
+ 1
1315
+ n
1316
+ p
1317
+ 1
1318
+ x
1319
+ 2
1320
+ ==
1321
+ p
1322
+ 3
1323
+ I
1324
+ 0
1325
+ I
1326
+ 3a
1327
+ I
1328
+ c
1329
+ x
1330
+ 31
1331
+ ./spec/hamster/list/any_spec.rb
1332
+ p
1333
+ 1
1334
+ x
1335
+ 4
1336
+ item
1337
+ x
1338
+ 4
1339
+ send
1340
+ x
1341
+ 7
1342
+ be_true
1343
+ x
1344
+ 6
1345
+ should
1346
+ p
1347
+ 5
1348
+ I
1349
+ 0
1350
+ I
1351
+ 39
1352
+ I
1353
+ 0
1354
+ I
1355
+ 3a
1356
+ I
1357
+ 12
1358
+ x
1359
+ 31
1360
+ ./spec/hamster/list/any_spec.rb
1361
+ p
1362
+ 0
1363
+ x
1364
+ 2
1365
+ it
1366
+ p
1367
+ 5
1368
+ I
1369
+ 0
1370
+ I
1371
+ 37
1372
+ I
1373
+ 4
1374
+ I
1375
+ 39
1376
+ I
1377
+ 1b
1378
+ x
1379
+ 31
1380
+ ./spec/hamster/list/any_spec.rb
1381
+ p
1382
+ 1
1383
+ x
1384
+ 5
1385
+ value
1386
+ x
1387
+ 4
1388
+ each
1389
+ s
1390
+ 47
1391
+ returns false if the block always returns false
1392
+ M
1393
+ 1
1394
+ n
1395
+ n
1396
+ x
1397
+ 9
1398
+ __block__
1399
+ i
1400
+ 18
1401
+ 36
1402
+ 0
1403
+ 19
1404
+ 4
1405
+ 0
1406
+ 53
1407
+ 1
1408
+ 47
1409
+ 2
1410
+ 1
1411
+ 5
1412
+ 44
1413
+ 45
1414
+ 3
1415
+ 46
1416
+ 4
1417
+ 1
1418
+ 11
1419
+ I
1420
+ 4
1421
+ I
1422
+ 0
1423
+ I
1424
+ -1
1425
+ I
1426
+ -1
1427
+ n
1428
+ p
1429
+ 5
1430
+ x
1431
+ 5
1432
+ @list
1433
+ M
1434
+ 1
1435
+ n
1436
+ n
1437
+ x
1438
+ 9
1439
+ __block__
1440
+ i
1441
+ 12
1442
+ 54
1443
+ 17
1444
+ 0
1445
+ 14
1446
+ 18
1447
+ 0
1448
+ 7
1449
+ 0
1450
+ 60
1451
+ 79
1452
+ 1
1453
+ 11
1454
+ I
1455
+ 4
1456
+ I
1457
+ 1
1458
+ I
1459
+ 1
1460
+ I
1461
+ 1
1462
+ n
1463
+ p
1464
+ 2
1465
+ s
1466
+ 1
1467
+ D
1468
+ x
1469
+ 2
1470
+ ==
1471
+ p
1472
+ 3
1473
+ I
1474
+ 0
1475
+ I
1476
+ 40
1477
+ I
1478
+ c
1479
+ x
1480
+ 31
1481
+ ./spec/hamster/list/any_spec.rb
1482
+ p
1483
+ 1
1484
+ x
1485
+ 4
1486
+ item
1487
+ x
1488
+ 4
1489
+ send
1490
+ x
1491
+ 8
1492
+ be_false
1493
+ x
1494
+ 6
1495
+ should
1496
+ p
1497
+ 5
1498
+ I
1499
+ 0
1500
+ I
1501
+ 3f
1502
+ I
1503
+ 0
1504
+ I
1505
+ 40
1506
+ I
1507
+ 12
1508
+ x
1509
+ 31
1510
+ ./spec/hamster/list/any_spec.rb
1511
+ p
1512
+ 0
1513
+ x
1514
+ 2
1515
+ it
1516
+ p
1517
+ 9
1518
+ I
1519
+ 0
1520
+ I
1521
+ 31
1522
+ I
1523
+ 0
1524
+ I
1525
+ 33
1526
+ I
1527
+ 8
1528
+ I
1529
+ 37
1530
+ I
1531
+ 1a
1532
+ I
1533
+ 3f
1534
+ I
1535
+ 25
1536
+ x
1537
+ 31
1538
+ ./spec/hamster/list/any_spec.rb
1539
+ p
1540
+ 0
1541
+ x
1542
+ 8
1543
+ describe
1544
+ s
1545
+ 13
1546
+ with no block
1547
+ M
1548
+ 1
1549
+ n
1550
+ n
1551
+ x
1552
+ 9
1553
+ __block__
1554
+ i
1555
+ 22
1556
+ 5
1557
+ 7
1558
+ 0
1559
+ 60
1560
+ 53
1561
+ 1
1562
+ 44
1563
+ 47
1564
+ 2
1565
+ 1
1566
+ 14
1567
+ 5
1568
+ 7
1569
+ 3
1570
+ 60
1571
+ 53
1572
+ 4
1573
+ 44
1574
+ 47
1575
+ 2
1576
+ 1
1577
+ 11
1578
+ I
1579
+ 4
1580
+ I
1581
+ 0
1582
+ I
1583
+ -1
1584
+ I
1585
+ -1
1586
+ n
1587
+ p
1588
+ 5
1589
+ s
1590
+ 35
1591
+ returns true if any value is truthy
1592
+ M
1593
+ 1
1594
+ n
1595
+ n
1596
+ x
1597
+ 9
1598
+ __block__
1599
+ i
1600
+ 26
1601
+ 42
1602
+ 0
1603
+ 1
1604
+ 1
1605
+ 3
1606
+ 2
1607
+ 7
1608
+ 2
1609
+ 60
1610
+ 46
1611
+ 3
1612
+ 4
1613
+ 19
1614
+ 4
1615
+ 0
1616
+ 46
1617
+ 4
1618
+ 1
1619
+ 5
1620
+ 44
1621
+ 45
1622
+ 5
1623
+ 46
1624
+ 6
1625
+ 1
1626
+ 11
1627
+ I
1628
+ 6
1629
+ I
1630
+ 0
1631
+ I
1632
+ -1
1633
+ I
1634
+ -1
1635
+ n
1636
+ p
1637
+ 7
1638
+ x
1639
+ 7
1640
+ Hamster
1641
+ n
1642
+ s
1643
+ 1
1644
+ A
1645
+ x
1646
+ 4
1647
+ list
1648
+ x
1649
+ 4
1650
+ send
1651
+ x
1652
+ 7
1653
+ be_true
1654
+ x
1655
+ 6
1656
+ should
1657
+ p
1658
+ 5
1659
+ I
1660
+ 0
1661
+ I
1662
+ 47
1663
+ I
1664
+ 0
1665
+ I
1666
+ 48
1667
+ I
1668
+ 1a
1669
+ x
1670
+ 31
1671
+ ./spec/hamster/list/any_spec.rb
1672
+ p
1673
+ 0
1674
+ x
1675
+ 2
1676
+ it
1677
+ s
1678
+ 38
1679
+ returns false if all values are falsey
1680
+ M
1681
+ 1
1682
+ n
1683
+ n
1684
+ x
1685
+ 9
1686
+ __block__
1687
+ i
1688
+ 22
1689
+ 42
1690
+ 0
1691
+ 1
1692
+ 1
1693
+ 3
1694
+ 46
1695
+ 2
1696
+ 2
1697
+ 19
1698
+ 4
1699
+ 0
1700
+ 46
1701
+ 3
1702
+ 1
1703
+ 5
1704
+ 44
1705
+ 45
1706
+ 4
1707
+ 46
1708
+ 5
1709
+ 1
1710
+ 11
1711
+ I
1712
+ 4
1713
+ I
1714
+ 0
1715
+ I
1716
+ -1
1717
+ I
1718
+ -1
1719
+ n
1720
+ p
1721
+ 6
1722
+ x
1723
+ 7
1724
+ Hamster
1725
+ n
1726
+ x
1727
+ 4
1728
+ list
1729
+ x
1730
+ 4
1731
+ send
1732
+ x
1733
+ 8
1734
+ be_false
1735
+ x
1736
+ 6
1737
+ should
1738
+ p
1739
+ 5
1740
+ I
1741
+ 0
1742
+ I
1743
+ 4b
1744
+ I
1745
+ 0
1746
+ I
1747
+ 4c
1748
+ I
1749
+ 16
1750
+ x
1751
+ 31
1752
+ ./spec/hamster/list/any_spec.rb
1753
+ p
1754
+ 0
1755
+ p
1756
+ 7
1757
+ I
1758
+ 0
1759
+ I
1760
+ 45
1761
+ I
1762
+ 0
1763
+ I
1764
+ 47
1765
+ I
1766
+ b
1767
+ I
1768
+ 4b
1769
+ I
1770
+ 16
1771
+ x
1772
+ 31
1773
+ ./spec/hamster/list/any_spec.rb
1774
+ p
1775
+ 0
1776
+ p
1777
+ 7
1778
+ I
1779
+ 0
1780
+ I
1781
+ 2f
1782
+ I
1783
+ 0
1784
+ I
1785
+ 31
1786
+ I
1787
+ b
1788
+ I
1789
+ 45
1790
+ I
1791
+ 16
1792
+ x
1793
+ 31
1794
+ ./spec/hamster/list/any_spec.rb
1795
+ p
1796
+ 0
1797
+ p
1798
+ 9
1799
+ I
1800
+ 0
1801
+ I
1802
+ 9
1803
+ I
1804
+ 0
1805
+ I
1806
+ b
1807
+ I
1808
+ b
1809
+ I
1810
+ 1f
1811
+ I
1812
+ 16
1813
+ I
1814
+ 2f
1815
+ I
1816
+ 21
1817
+ x
1818
+ 31
1819
+ ./spec/hamster/list/any_spec.rb
1820
+ p
1821
+ 0
1822
+ x
1823
+ 8
1824
+ describe
1825
+ p
1826
+ 5
1827
+ I
1828
+ 0
1829
+ I
1830
+ 7
1831
+ I
1832
+ 4
1833
+ I
1834
+ 9
1835
+ I
1836
+ 15
1837
+ x
1838
+ 31
1839
+ ./spec/hamster/list/any_spec.rb
1840
+ p
1841
+ 1
1842
+ x
1843
+ 6
1844
+ method
1845
+ x
1846
+ 4
1847
+ each
1848
+ p
1849
+ 5
1850
+ I
1851
+ 0
1852
+ I
1853
+ 5
1854
+ I
1855
+ 0
1856
+ I
1857
+ 7
1858
+ I
1859
+ e
1860
+ x
1861
+ 31
1862
+ ./spec/hamster/list/any_spec.rb
1863
+ p
1864
+ 0
1865
+ x
1866
+ 8
1867
+ describe
1868
+ p
1869
+ 7
1870
+ I
1871
+ 0
1872
+ I
1873
+ 1
1874
+ I
1875
+ 1a
1876
+ I
1877
+ 3
1878
+ I
1879
+ 23
1880
+ I
1881
+ 5
1882
+ I
1883
+ 32
1884
+ x
1885
+ 31
1886
+ ./spec/hamster/list/any_spec.rb
1887
+ p
1888
+ 0