How to determine if an object is a certain type in F# -


in c# use keyword 'is'

if (variable string) { } 

how done in f#

try

if (variable :? string) ... 

or

let x = variable :? string 

Comments

Popular posts from this blog

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -