Ticket #28 (closed enhancement: fixed)

Opened 3 years ago

Last modified 21 months ago

(!?) doesn't fuse

Reported by: anonymous Owned by:
Priority: minor Milestone: 0.8
Version: Keywords:
Cc: alexey.skladnoy@…

Description

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

Change History

Changed 3 years ago by anonymous

I have a patch which implement this function but trac refuses to add attachments. (See #29)

Changed 3 years ago by anonymous

Just to let you know. I send the patch few days ago

Changed 3 years ago by rl

I pushed the patch:

Wed Jul 28 07:25:32 EST 2010 Khudyakov Alexey <alexey.skladnoy@…>

  • Add function for safe indexing

Changed 3 years ago by rl

  • priority changed from major to minor
  • summary changed from Add safe indexing function to (!?) doesn't fuse
  • type changed from enhancement to defect
  • milestone set to 0.7

The operation doesn't fuse at the moment, I'll leave the ticket open until I fix that.

Changed 3 years ago by rl

  • milestone changed from 0.7 to 0.8

Changed 21 months ago by rl

  • type changed from defect to enhancement

Changed 21 months ago by rl

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.