I hereby claim:
- I am ttilley on github.
- I am ttilley (https://keybase.io/ttilley) on keybase.
- I have a public key whose fingerprint is 8D25 C7B4 214E EC23 EA0F 84EF D2DF 823B EB38 15AC
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -e | |
xcsel='xcode-select --print-path' | |
xcodepath="$($xcsel)" | |
platform='MacOSX' | |
export TRIPLE='x86_64-apple-darwin11' | |
export MACOSX_DEPLOYMENT_TARGET='10.7' |
I hereby claim:
To claim this, I am signing this object:
func tupleToArray<T, U>(var tuple: T, _ resultType: U.Type) -> [U] { | |
let count = sizeof(T) / sizeof(U) | |
return withUnsafePointer(&tuple) { ptr -> [U] in | |
let eltPtr = UnsafePointer<U>(ptr) | |
return Array(0..<count).map({ eltPtr[$0] }) | |
} | |
} |