oscbyspro / AwesomeNumbersKit

Large number arithmetic in Swift
Apache License 2.0
7 stars 1 forks source link

Add `uninitialized(_:)` #139

Closed oscbyspro closed 1 year ago

oscbyspro commented 1 year ago

I'll port uninitialized(_:) from Numberick, because adding it makes porting other things easier. It's fromUnsafeMutableWords(_:), but safer (plus some performance caveats).

@inlinable public static func uninitialized(_ body: (inout Self) -> Void) -> Self { }
oscbyspro commented 1 year ago

A solution without closure would be better, but those have not performed well.