[squeak-dev] The Trunk: Collections-ct.1026.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Dec 27 23:44:07 UTC 2022
Christoph Thiede uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.1026.mcz
==================== Summary ====================
Name: Collections-ct.1026
Author: ct
Time: 28 December 2022, 12:44:05.815118 am
UUID: 4f0b7759-244d-0442-a70e-fc296638966c
Ancestors: Collections-eem.1025, Collections-ct.1022
Merges Collections-ct.1022 (PositionableStream>>#peek:).
=============== Diff against Collections-eem.1025 ===============
Item was added:
+ ----- Method: PositionableStream>>peek: (in category 'accessing') -----
+ peek: anInteger
+ "Answer what would be returned if the message next: anInteger were sent to the receiver. If the receiver has less than anInteger more elements, only answer so many elements as available."
+
+ | oldPosition result |
+ oldPosition := position.
+ result := self next: anInteger.
+ position := oldPosition.
+ ^ result!
More information about the Squeak-dev
mailing list
|