Skip to content

Instantly share code, notes, and snippets.

/// MARK CoW implementation
@propertyWrapper
public struct CoW<T> {
private final class Ref {
var val: T
init(_ v: T) { val = v }
}
private var ref: Ref