Skip to content

Handle empty slices in forward_list and add a test #54

Closed

Description

@teor2345

Taking a slice makes the constructor easier to use, and this check handles empty slices safely so callers don’t need to treat them differently.

Originally posted by @Ayuse in #52 (comment)

This check is not done in the forward_list module, so we need to change the slice handling code there.

Activity

  1. self-assigned this
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions