code
func testFunction() -> NSString {
}
public void TestFunction()
{
func while1(@autoclosure c: () -> Bool, body: () -> ()) { | |
println("here") | |
if c() { | |
body() | |
while1(c, body) | |
} | |
} | |
var counter = 0 | |
while1(counter < 10) { |
import Foundation | |
func perf<T, U>(f: T -> U) -> T -> (NSTimeInterval, U) { | |
return { | |
(a: T) -> (NSTimeInterval, U) in | |
let start = NSDate() | |
let result = f(a) | |
return (NSDate().timeIntervalSinceDate(start), result) |
code
func testFunction() -> NSString {
}
public void TestFunction()
{
I hereby claim:
To claim this, I am signing this object: