id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
5162,Add Int index functions to Data.Set,sacundim,sacundim,"Data.Map has some functions that allow a Map's entries to be accessed through Int indexes:

{{{
lookupIndex :: Ord k => k -> Map k a -> Maybe Int
findIndex :: Ord k => k -> Map k a -> Int
elemAt :: Int -> Map k a -> (k, a)
updateAt :: (k -> a -> Maybe a) -> Int -> Map k a -> Map k a
deleteAt :: Int -> Map k a -> Map k a
}}}

With the exception of updateAt, these functions are trivially adaptable to Data.Set.

I attach a patch to this ticket that does that.  My Data.Set implementations of the functions are modeled on the ones from Data.Map.  Functions implemented:

{{{
lookupIndex :: Ord a => a -> Set a -> Maybe Int
findIndex :: Ord a => a -> Set a -> Int
elemAt :: Int -> Set a -> a
deleteAt :: Int -> Set a -> Set a
}}}
",feature request,closed,normal,,libraries (other),7.0.3,wontfix,Data.Set,luis@…,Unknown/Multiple,Unknown/Multiple,None/Unknown,,,,,
