--- a/Iterator.st Wed Mar 05 12:38:57 2014 +0100
+++ b/Iterator.st Wed Mar 05 14:19:34 2014 +0100
@@ -326,12 +326,11 @@
"Created: / 21-10-2013 / 16:07:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
-detectLast:aBlock ifNone:exceptionBlock
+detectLast:aBlock ifNone:anExceptionValue
"evaluate the argument, aBlock for each element in the receiver until
the block returns true; in this case return the element which caused
the true evaluation. The elements are processed in reverse order.
- If none of the evaluations returns true, return the result of the
- evaluation of the exceptionBlock"
+ If none of the evaluations returns true, return the value of anExceptionValue"
| last |
@@ -339,7 +338,7 @@
(aBlock value:each) ifTrue: [last := each]
].
last isNil ifTrue:[
- ^ exceptionBlock value.
+ ^ anExceptionValue value.
].
^ last
@@ -448,10 +447,10 @@
!Iterator class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic2/Iterator.st,v 1.28 2013-10-24 09:10:51 stefan Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic2/Iterator.st,v 1.29 2014-03-05 13:19:34 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libbasic2/Iterator.st,v 1.28 2013-10-24 09:10:51 stefan Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic2/Iterator.st,v 1.29 2014-03-05 13:19:34 cg Exp $'
! !