Skip to content

Implement sequence splitting: split-at, split-with, partition-by, dedupe, keep-indexed #821

@andreasronge

Description

@andreasronge

Context

Part of the Clojure core candidate implementation effort (Phase 2c). Natural companions to already-supported partition, partition-all, keep.

Functions to implement

Function Description
split-at Splits seq at index
split-with Splits seq by predicate
partition-by Partitions by change in function value
dedupe Removes consecutive duplicates
keep-indexed Keeps non-nil results with index

Notes

  • These extend the existing partitioning/filtering capabilities
  • All are pure sequence transformations

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    clojure-core-candidatesClojure core function candidates for PTC-LispenhancementNew feature or requestptc-lispPTC-Lisp language implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions