Snippets created by Bang Jun-young
-
Performs binary search on sorted arrays. Both ascending and descending-ordered arrays are supported. Pass a reverse comparer to the tryBinarySearchWith function to search on descending-ordered arrays.
2 people like this
Like the snippet!
Posted: 5 years ago by
Bang Jun-young
-
Type-safe Nullable in F# featuring:
arithmetic operations on primitive types,
structural equality/comparison,
null-coalescing operator,
explicit type conversion to the underlying type,
throwing an exception in exceptional condition,
`nullable` computation expression,
and etc.
2 people like this
Like the snippet!
Posted: 5 years ago by
Bang Jun-young