[Pkg] The Treated Inbox: Kernel-ct.1412.mcz

commits at source.squeak.org commits at source.squeak.org
Fri May 6 14:12:09 UTC 2022


Nicolas Cellier uploaded a new version of Kernel to project The Treated Inbox:
http://source.squeak.org/treated/Kernel-ct.1412.mcz

==================== Summary ====================

Name: Kernel-ct.1412
Author: ct
Time: 7 September 2021, 11:54:32.77151 pm
UUID: ca064a0e-13a5-f64f-ac9e-91ae045569a7
Ancestors: Kernel-eem.1408

Adds non-performant but existing implementation of #isPowerOfTwo on Number. Now 16s isPowerOfTwo works as expected, too. Complements Kernel-nice.1377.

=============== Diff against Kernel-eem.1408 ===============

Item was added:
+ ----- Method: Number>>isPowerOfTwo (in category 'testing') -----
+ isPowerOfTwo
+ 
+ 	^ self strictlyPositive and: [(self log2 \\ 1) isZero]!



More information about the Packages mailing list