7 lines
141 B
PSL
7 lines
141 B
PSL
func test(x: f32) -> f32:
|
|
foreign func sin(x: f32) -> f32
|
|
let pi = 3.1415926535
|
|
return sin(pi * x)
|
|
|
|
let myfunc = test
|
|
let x = myfunc(7.5)
|