Skip to content

Instantly share code, notes, and snippets.

@NetguruGist
Created October 31, 2015 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetguruGist/da036b5e686b79a2a82a to your computer and use it in GitHub Desktop.
Save NetguruGist/da036b5e686b79a2a82a to your computer and use it in GitHub Desktop.
hiddengems3 swift
extension String {
init(stringInterpolationSegment bit: Bit) {
self = "\(bit.rawValue)"
}
}
let five: "\(Bit.One)\(Bit.Zero)\(Bit.One)" // "101"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment