@bodil/core - v0.4.2
    Preparing search index...

    Namespace order

    Sorting and ordering.

    Enumerations

    Cmp

    Type Aliases

    OperatorComparable

    The set of types which can be compared using the < and > operators.

    OrderFn

    An order function is a function which is used to compare two items, returning a Cmp to describe the first item in relation to the second, eg. Cmp.GT says the first item is greater than the second item.

    Functions

    ascending

    An order function which sorts OperatorComparable items in ascending order.

    bisectHigh

    Given a value, a sorted array and a comparison function by which the array has been sorted, find the highest index at which the value could be inserted while maintaining sort order.

    bisectLow

    Given a value, a sorted array and a comparison function by which the array has been sorted, find the lowest index at which the value could be inserted while maintaining sort order.

    descending

    An order function which sorts OperatorComparable items in descending order.

    find

    Given a value, a sorted array and a comparison function by which the array has been sorted, find the index of the specific value if it exists in the array.

    reverse

    Take an order function and invert its order.