8 lines
121 B
Text
8 lines
121 B
Text
|
|
import math.{sin, asin}
|
||
|
|
|
||
|
|
def compose( f, g ) = x -> f( g(x) )
|
||
|
|
|
||
|
|
sin_asin = compose( sin, asin )
|
||
|
|
|
||
|
|
println( sin_asin(0.5) )
|