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 -

python - Received unregistered task using Celery with Django -

php - Retrieving data submitted with Yii's CActiveForm -