next* returns empty list at end of pagetree contrary to documentation #187

Closed
opened 6 years ago by kisaragi-hiu · 0 comments
kisaragi-hiu commented 6 years ago (Migrated from github.com)

Pollen version: 1.5.1948.555 (commit 4a55c98a0c)

The documentation for next and next* says

Return the pagenode immediately after p. (...) In both cases, return #f if there aren’t any pagenodes.

But next* returns '() instead of #f.

(current-pagetree '(root a.html b.html c.html d.html))
(next 'd.html) ; => #f
(next* 'd.html) ; => '()

Both previous and previous* work fine.

(previous 'a.html) ; => #f
(previous* 'a.html) ; => #f
Pollen version: 1.5.1948.555 (commit 4a55c98a0c249ea41c6f8c44ce3366dbe60f6265) The [documentation for `next` and `next*`](http://docs.racket-lang.org/pollen/Pagetree.html?q=pollen#%28def._%28%28lib._pollen%2Fpagetree..rkt%29._next%29%29) says > Return the pagenode immediately after *p*. (...) In both cases, return #f if there aren’t any pagenodes. But `next*` returns `'()` instead of `#f`. ```racket (current-pagetree '(root a.html b.html c.html d.html)) (next 'd.html) ; => #f (next* 'd.html) ; => '() ``` Both `previous` and `previous*` work fine. ```racket (previous 'a.html) ; => #f (previous* 'a.html) ; => #f ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#187
Loading…
There is no content yet.