# HG changeset patch # User Stefan Vogel # Date 1378798552 -7200 # Node ID c63aea2dcfe561b700d18f4d341898cce4f4cf48 # Parent d9443f8b76eb7b4b89ec88ee5e0054f69d6cc4bd class: Collection comment/format in: #lastIfEmpty: diff -r d9443f8b76eb -r c63aea2dcfe5 Collection.st --- a/Collection.st Fri Sep 06 18:10:58 2013 +0200 +++ b/Collection.st Tue Sep 10 09:35:52 2013 +0200 @@ -259,6 +259,7 @@ ^ self withSize:n ! ! + !Collection class methodsFor:'Signal constants'! emptyCollectionSignal @@ -530,6 +531,7 @@ ]. ! ! + !Collection methodsFor:'accessing'! anElement @@ -767,7 +769,7 @@ lastIfEmpty:exceptionValue "return the last element of the collection. If its empty, return the exceptionValue. - (i.e. dont trigger an error as done in #last)" + (i.e. don't trigger an error as done in #last)" self isEmpty ifTrue:[^ exceptionValue value]. ^ self last @@ -4901,11 +4903,11 @@ !Collection class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.315 2013-09-05 23:16:50 cg Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.316 2013-09-10 07:35:52 stefan Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.315 2013-09-05 23:16:50 cg Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.316 2013-09-10 07:35:52 stefan Exp $' ! !