• code Haskell гинь-гинь
    *Data.ByteString.FlatSet> lookupInRange "d" fs 0 3
    (1,0)
    (2,0)
    (3,2)
    (3,2)
    Left (2,3)
    *Data.ByteString.FlatSet> lookupInRange "d" fs 0 3
    (1,0)
    (2,0)
    (3,2)
    (3,2)
    Left (2,3)
    *Data.ByteString.FlatSet> lookupInRange "d" fs 0 3
    (1,0)
    (2,0)
    (3,2)
    (4,3)
    Left (3,4)
    *Data.ByteString.FlatSet> lookupInRange "d" fs 0 3
    (1,0)
    (2,0)
    (3,2)
    (3,2)
    Left (2,3)
    ♡ recommended by @segfault

Replies (5)