equal
deleted
inserted
replaced
3447 ! |
3447 ! |
3448 |
3448 |
3449 conform:aOneArgBlock |
3449 conform:aOneArgBlock |
3450 "return true, if every element conforms to some condition. |
3450 "return true, if every element conforms to some condition. |
3451 I.e. return false, if aBlock returns false for any element; |
3451 I.e. return false, if aBlock returns false for any element; |
3452 true otherwise." |
3452 true otherwise. Returns true for empty receivers." |
3453 |
3453 |
3454 self do:[:element | |
3454 self do:[:element | |
3455 (aOneArgBlock value:element) ifFalse:[^ false] |
3455 (aOneArgBlock value:element) ifFalse:[^ false] |
3456 ]. |
3456 ]. |
3457 ^ true |
3457 ^ true |
3458 |
3458 |
3459 " |
3459 " |
3460 #(1 2 3 4 5) conform:[:el | el even] |
3460 #(1 2 3 4 5) conform:[:el | el even] |
3461 #(2 4 6 8 10) conform:[:el | el even] |
3461 #(2 4 6 8 10) conform:[:el | el even] |
|
3462 #() conform:[:el | el even] |
3462 " |
3463 " |
3463 |
3464 |
3464 "Modified: / 13-09-2006 / 11:19:03 / cg" |
3465 "Modified: / 13-09-2006 / 11:19:03 / cg" |
3465 ! |
3466 ! |
3466 |
3467 |
4898 ! ! |
4899 ! ! |
4899 |
4900 |
4900 !Collection class methodsFor:'documentation'! |
4901 !Collection class methodsFor:'documentation'! |
4901 |
4902 |
4902 version |
4903 version |
4903 ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.314 2013-09-03 12:53:22 cg Exp $' |
4904 ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.315 2013-09-05 23:16:50 cg Exp $' |
4904 ! |
4905 ! |
4905 |
4906 |
4906 version_CVS |
4907 version_CVS |
4907 ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.314 2013-09-03 12:53:22 cg Exp $' |
4908 ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.315 2013-09-05 23:16:50 cg Exp $' |
4908 ! ! |
4909 ! ! |
4909 |
4910 |
4910 |
4911 |
4911 Collection initialize! |
4912 Collection initialize! |