Opened 14 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:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Version: | 2.0.0.3 → 2.0.1 |
---|
comment:3 Changed 13 years ago by
Milestone: | → 3.0.0 |
---|
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
http://stackoverflow.com/questions/6241452/haskell-repa-select-function-is-a-bit-confusing