Skip to content

Instantly share code, notes, and snippets.

@cjnevin
Created November 5, 2022 22:17
Show Gist options
  • Save cjnevin/47efef7111ed76b7a0d960044c4f46cd to your computer and use it in GitHub Desktop.
Save cjnevin/47efef7111ed76b7a0d960044c4f46cd to your computer and use it in GitHub Desktop.
public func configure<Value>(_ value: Value, _ closure: (Value) -> Void) -> Value {
closure(value)
return value
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment