Skip to content

Commit

Permalink
+ BlElement>>withAllChildrenDepthFirstDo:
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Jan 29, 2024
1 parent 464f535 commit c18d99e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Bloc/BlElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4083,6 +4083,13 @@ BlElement >> withAllChildrenBreadthFirstDo: aBlock [
self allChildrenBreadthFirstDo: aBlock
]

{ #category : #'api - children enumeration' }
BlElement >> withAllChildrenDepthFirstDo: aBlock [
self childrenDo: [ :each | each allChildrenDepthFirstDo: aBlock ].
self childrenDo: aBlock.
aBlock value: self
]

{ #category : #'api - children enumeration' }
BlElement >> withAllChildrenDo: aBlock [
"Evaluate aBlock with myself and each of my direct children as argument.
Expand Down

0 comments on commit c18d99e

Please sign in to comment.