NullPointerException possible with seq-zip

Description

For example:

Possibly the make-node function for seq-zip should be:

Environment

None

Activity

Show:

Alex Miller June 20, 2017 at 3:35 AM

Would be happy to see a patch (although it also needs to backfill some tests too).

One workaround would be something like:

Or you could use another zipper library like hara.zip which doesn't have remove, but works with delete-right:

import June 20, 2017 at 2:43 AM

Comment made by: chbrown

4+ years later, I also ran into this.

Is there a workaround? I.e., is there a way to remove elements from singleton branches?

Greg Chapman February 26, 2012 at 11:54 PM

Also the docstring for zipper should probably be updated to indicate that the children parameter can be nil.

Details

Assignee

Reporter

Labels

Approval

Triaged

Priority

Affects versions

Created February 26, 2012 at 11:19 PM
Updated January 19, 2022 at 10:31 PM