oscbyspro / Ultimathnum

Binary arithmetic reimagined in Swift
Apache License 2.0
4 stars 1 forks source link

BinaryInteger.init(clamping:mode:) - DataInt #24

Closed oscbyspro closed 2 weeks ago

oscbyspro commented 2 weeks ago

I'm working on (#23) and it seems like I'd want a DataInt version of init(clamping:) to implement StdlibInt.init(clamping: Swift.BinaryInteger). I'm not sure it's necessary, but I would at least have to repeat the logic otherwise and that kind of defeats the point of it. Edit: Never mind, I don't think I need it.