How can I write a no-op statement in F#?
Specifically, how can I improve the second clause of the following match statement:
match list with | [] -> printfn "Empty!" | _ -> ignore 0
Facebook adalah media sosial dan layanan jejaring sosial online Amerika yang dimiliki oleh Meta Platforms.
Use unit for empty side effect:
match list with | [] -> printfn "Empty!" | _ -> ()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With