Skip to main content

Try it Live

Run Hardfork examples in the interactive playground

    Return Values

    Usage Patterns

    Sorting

    Sort hardforks chronologically:

    Network Configuration

    Sort supported versions:
    Use in binary search algorithms:

    Range Checks

    Implement range validation:

    Chronological Ordering

    Uses deployment date order:
    Comparison algorithm:

    Alias Handling

    Correctly handles aliases:

    Performance

    Time Complexity: O(1) - Array index comparison Typical Time: ~10-20ns per call

    See Also