Opened 13 years ago

Closed 13 years ago

#20 closed defect (fixed)

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

Reported by: Ben Lippmeier 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 13 years ago by Ben Lippmeier

Version: 2.0.0.32.0.1

comment:3 Changed 13 years ago by Ben Lippmeier

Milestone: 3.0.0

comment:4 Changed 13 years ago by Ben Lippmeier

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.