Socialmetrica/Socialmetrica.package/TweetsCollection.class/instance/oldest.st

5 lines
203 B
Smalltalk
Raw Normal View History

2022-04-14 22:40:41 +00:00
accessing
oldest
self messages ifNil: [ ^ nil ].
self messages ifEmpty: [ ^ nil ].
^ (self select:[ :tweet | tweet created = ((self collect: [ :each | each created ]) asSortedCollection first)]) first