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

5 lines
202 B
Smalltalk
Raw Normal View History

2022-04-14 22:40:41 +00:00
accessing
newest
self messages ifNil: [ ^ nil ].
2022-04-15 05:05:17 +00:00
self messages ifEmpty: [ ^ nil ].
2022-05-04 02:25:22 +00:00
^ (self select:[ :tweet | tweet created = ((self collect: [ :each | each created ]) asSortedCollection last)]) first