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

5 lines
202 B
Smalltalk

accessing
newest
self messages ifNil: [ ^ nil ].
self messages ifEmpty: [ ^ nil ].
^ (self select:[ :tweet | tweet created = ((self collect: [ :each | each created ]) asSortedCollection last)]) first