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

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -