I have this code:
Scala:
object C extends App{
def a(): Unit ={
println("a")
}
val b=a
}
f#:
let a=printfn "%A" "a"
[<EntryPoint>]
let main argv =
let b=a
0 // return an integer exit code
I only want to pass the function as a value a
, not to run it. Why, when I run the program, I get "a" written to the console?