Proposal: containers: add indexing operations for Set

Milan Straka fox at ucw.cz
Tue Jul 3 21:16:40 CEST 2012


Hi,

> I'd like to add the following indexing operations for Data.Set.Set, to
> complement the existing functions for Data.Map.Map:
>
> findIndex :: Ord a => a -> Set a -> Int
> lookupIndex :: Ord a => a -> Set a -> Maybe Int
> elemAt :: Int -> Set a -> a
> deleteAt :: Int -> Set a -> Set a

+1

Milan



More information about the Libraries mailing list