[vector] #28: Add safe indexing function

vector vector at projects.haskell.org
Sat Aug 14 18:11:22 EDT 2010


#28: Add safe indexing function
------------------------+---------------------------------------------------
Reporter:  anonymous    |       Owner:     
    Type:  enhancement  |      Status:  new
Priority:  major        |   Milestone:     
 Version:               |    Keywords:     
------------------------+---------------------------------------------------
 Please add safe indexing function which doesn't bombs when index goes out
 of range. Such function is very convenient when it's known that indices
 may go out of range. I think such function deserve inclusion in library.

 {{{
 (!?) :: Vector v a => v a -> Int -> Maybe a
 }}}

-- 
Ticket URL: <http://trac.haskell.org/vector/ticket/28>
vector <http://trac.haskell.org/vector>
Package vector


More information about the vector mailing list