Opened 8 years ago

Closed 8 years ago

#20 closed defect (fixed)

Better docs for the select function, or change the implementation.

Reported by: benl Owned by:
Priority: blocker Milestone: 3.0.0
Component: algorithms Version: 2.0.1
Keywords: Cc:


From SO: Hello! I'm a bit confused with select function in repa package:

select (\i -> True) (\i -> i) 10 gives the result


I thought i to be between 0 and 10 or 0 and 9. Why is it between 0 and 8?

Getting indices from [0..8] for an extend of 10 is confusing.

Change History (4)

comment:2 Changed 8 years ago by benl

  • Version changed from to 2.0.1

comment:3 Changed 8 years ago by benl

  • Milestone set to 3.0.0

comment:4 Changed 8 years ago by benl

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