Thanks for your feedback, Iggy~
Agree that when it comes to the isPowerOf2 form, we'd go with a computed property. I think isPower(of:) appears to have better consistency with the existing isMultiple(of:), though.
Thanks for your feedback, Iggy~
Agree that when it comes to the isPowerOf2 form, we'd go with a computed property. I think isPower(of:) appears to have better consistency with the existing isMultiple(of:), though.