Open kyleect opened 11 months ago
fun sum(a, b) { return a + b; } var sum5 = sum(5); print sum5(10); // out: 15
Typed
// Function<[Int, Int], Int> // (Int, Int) => Int fun sum(a: Int, b: Int): Int { return a + b; } var sum5: Function<[Int], Int> = sum(5); var sum5b: (Int) => Int = sum(5); print sum5(10); // out: 15
Typed