@@ -205,6 +205,12 @@ MooseAbstractGroup >> at: anIndex [
205
205
^ self entities at: anIndex
206
206
]
207
207
208
+ { #category : #accessing }
209
+ MooseAbstractGroup >> at: anIndex ifAbsent: aBlock [
210
+
211
+ ^ self entities at: anIndex ifAbsent: aBlock
212
+ ]
213
+
208
214
{ #category : #' public interface' }
209
215
MooseAbstractGroup >> average: aSymbolOrBlock [
210
216
@@ -236,6 +242,12 @@ MooseAbstractGroup >> collect: collectBlock thenReject: selectBlock [
236
242
^ (self collect: collectBlock) reject: selectBlock
237
243
]
238
244
245
+ { #category : #enumerating }
246
+ MooseAbstractGroup >> collect: aBlockCollect thenSelect: aBlockThenSelect [
247
+
248
+ ^ self entities collect: aBlockCollect thenSelect: aBlockThenSelect
249
+ ]
250
+
239
251
{ #category : #enumerating }
240
252
MooseAbstractGroup >> collectAsSet: aBlock [
241
253
^ self entities collectAsSet: aBlock
@@ -262,6 +274,12 @@ MooseAbstractGroup >> copyWithout: anEntity [
262
274
^ self entities copyWithout: anEntity
263
275
]
264
276
277
+ { #category : #copying }
278
+ MooseAbstractGroup >> copyWithoutAll: mooseEntities [
279
+
280
+ ^ self entities copyWithoutAll: mooseEntities
281
+ ]
282
+
265
283
{ #category : #enumerating }
266
284
MooseAbstractGroup >> count: aBlock [
267
285
@@ -283,6 +301,12 @@ MooseAbstractGroup >> detect: aBlock ifNone: anotherBlock [
283
301
^ self entities detect: aBlock ifNone: anotherBlock
284
302
]
285
303
304
+ { #category : #enumerating }
305
+ MooseAbstractGroup >> detectMax: aString [
306
+
307
+ ^ self entities detectMax: aString
308
+ ]
309
+
286
310
{ #category : #' entity collection' }
287
311
MooseAbstractGroup >> difference: aCollection [
288
312
^ self species withAll: (self entities difference: aCollection)
@@ -309,13 +333,10 @@ MooseAbstractGroup >> doWithIndex: aBlockClosure [
309
333
self entities doWithIndex: aBlockClosure
310
334
]
311
335
312
- { #category : #' reflective operations' }
313
- MooseAbstractGroup >> doesNotUnderstand: aMessage [
314
- " Forward message to collection"
336
+ { #category : #accessing }
337
+ MooseAbstractGroup >> eighth [
315
338
316
- ^ [ aMessage sendTo: self entities ]
317
- on: MessageNotUnderstood
318
- do: [ super doesNotUnderstand: aMessage ]
339
+ ^ self entities eighth
319
340
]
320
341
321
342
{ #category : #' entity collection' }
@@ -381,6 +402,12 @@ MooseAbstractGroup >> equalsTo: aCollection [
381
402
^ self entities equalsTo: aCollection
382
403
]
383
404
405
+ { #category : #accessing }
406
+ MooseAbstractGroup >> fifth [
407
+
408
+ ^ self entities fifth
409
+ ]
410
+
384
411
{ #category : #accessing }
385
412
MooseAbstractGroup >> first [
386
413
@@ -411,6 +438,18 @@ MooseAbstractGroup >> flatten [
411
438
^ self gather: [ :each | each ]
412
439
]
413
440
441
+ { #category : #enumerating }
442
+ MooseAbstractGroup >> fold: aBlock [
443
+
444
+ ^ self entities fold: aBlock
445
+ ]
446
+
447
+ { #category : #accessing }
448
+ MooseAbstractGroup >> fourth [
449
+
450
+ ^ self entities fourth
451
+ ]
452
+
414
453
{ #category : #enumerating }
415
454
MooseAbstractGroup >> gather: aBlock [
416
455
" This method is kept for compatibility reasons, use flatCollect instead."
@@ -452,6 +491,12 @@ MooseAbstractGroup >> ifNotEmpty: aBlock [
452
491
^ self ifEmpty: [ self ] ifNotEmpty: [ aBlock cull: self ]
453
492
]
454
493
494
+ { #category : #testing }
495
+ MooseAbstractGroup >> ifNotEmpty: aBlockIfNotEmpty ifEmpty: aBlockIfEmpty [
496
+
497
+ ^ self entities ifEmpty: aBlockIfEmpty ifNotEmpty: aBlockIfNotEmpty
498
+ ]
499
+
455
500
{ #category : #testing }
456
501
MooseAbstractGroup >> includes: anEntity [
457
502
@@ -474,6 +519,12 @@ MooseAbstractGroup >> includesID: elementID [
474
519
^ self entityStorage includesID: elementID
475
520
]
476
521
522
+ { #category : #accessing }
523
+ MooseAbstractGroup >> indexOf: aMooseEntity [
524
+
525
+ ^ self entities indexOf: aMooseEntity
526
+ ]
527
+
477
528
{ #category : #initialization }
478
529
MooseAbstractGroup >> initialize [
479
530
@@ -555,6 +606,12 @@ MooseAbstractGroup >> mooseModel [
555
606
^ self ifEmpty: [ nil ] ifNotEmpty: [ self anyOne mooseModel ]
556
607
]
557
608
609
+ { #category : #accessing }
610
+ MooseAbstractGroup >> ninth [
611
+
612
+ ^ self entities ninth
613
+ ]
614
+
558
615
{ #category : #testing }
559
616
MooseAbstractGroup >> notEmpty [
560
617
^ self entities isNotEmpty
@@ -660,6 +717,12 @@ MooseAbstractGroup >> select: aBlock [
660
717
^ self entities select: aBlock
661
718
]
662
719
720
+ { #category : #enumerating }
721
+ MooseAbstractGroup >> select: aBlockSelect thenDo: aBlockThenDo [
722
+
723
+ ^ self entities select: aBlockSelect thenDo: aBlockThenDo
724
+ ]
725
+
663
726
{ #category : #enumerating }
664
727
MooseAbstractGroup >> selectFirst: anInteger [
665
728
@@ -674,11 +737,29 @@ MooseAbstractGroup >> selectWithNameSimilarTo: anEntity [
674
737
(each name pairsSimilarityWith: anEntity name) > 0.5 ]]
675
738
]
676
739
740
+ { #category : #accessing }
741
+ MooseAbstractGroup >> seventh [
742
+
743
+ ^ self entities seventh
744
+ ]
745
+
746
+ { #category : #accessing }
747
+ MooseAbstractGroup >> sixth [
748
+
749
+ ^ self entities sixth
750
+ ]
751
+
677
752
{ #category : #accessing }
678
753
MooseAbstractGroup >> size [
679
754
^ self entityStorage size
680
755
]
681
756
757
+ { #category : #sorting }
758
+ MooseAbstractGroup >> sorted [
759
+
760
+ ^ self entities sorted
761
+ ]
762
+
682
763
{ #category : #arithmetic }
683
764
MooseAbstractGroup >> sumNumbers: aBlockClosure [
684
765
^ self entities sumNumbers: aBlockClosure
0 commit comments