Opened 7 years ago

Closed 6 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:

Description

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

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

[0,1,2,3,4,5,6,7,8]

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 7 years ago by benl

  • Version changed from 2.0.0.3 to 2.0.1

comment:3 Changed 7 years ago by benl

  • Milestone set to 3.0.0

comment:4 Changed 6 years ago by benl

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