Snippets created by Bang Jun-young

  • Binary search on sorted arrays

    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.

    1 people like this

    Posted: 7 months ago by Bang Jun-young

  • Reimplementation of C# Nullable type

    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

    Posted: 6 months ago by Bang Jun-young