| last home indent |
last := nil.
home := thisContext.
indent := 0.
thisContext
runSimulated: [#(1 2 3) detect: [:e| e even]]
contextAtEachStep:
[:c| | ctxt |
c ~~ last ifTrue:
[last := c.
indent := 0. ctxt := c sender.
[ctxt ~~ home] whileTrue:
[ctxt := ctxt sender. indent := indent + 1].
Transcript crtab: indent; print: c; flush]]
[] in UndefinedObject>>DoIt
Array(Collection)>>detect:
Array(Collection)>>detect:ifNone:
Array(SequenceableCollection)>>do:
[] in Array(Collection)>>detect:ifNone:
[] in [] in UndefinedObject>>DoIt
SmallInteger>>even
[] in [] in UndefinedObject>>DoIt
[] in Array(Collection)>>detect:ifNone:
Array(SequenceableCollection)>>do:
[] in Array(Collection)>>detect:ifNone:
[] in [] in UndefinedObject>>DoIt
SmallInteger>>even
[] in [] in UndefinedObject>>DoIt
[] in Array(Collection)>>detect:ifNone:
Array(Collection)>>detect:
[] in UndefinedObject>>DoIt