Snippets tagged null

  • How to check whether an F# function/method has been initialized

    Sometimes, we may run into this kind of situation that we want to check if the given method/function has been initialized. We all know this is fairly easy in C#, since we can use delegate to invoke the function , then verify if the value of delegate is null. But in F# , delegate is rarely needed because F# can treat a function as a value, without the need for any wrapper. So , here is an easy way to solve this problem.

    6 people like this

    Posted: 12 years ago by ZackZhou