I'm learning Kotlin and am wondering if anyone out there could advise on what the following snippet of F# might look like in idiomatic Kotlin.
// a function that has an Option<int> as input
let printOption x = match x with
| Some i -> printfn "The int is %i" i
| None -> printfn "No value"
Thanks a million. (btw, the snippet is from Scott Wlaschin's wonderful Domain Modeling Made Functional)