Skip to content

Fails when size is 1. #1

@reitermarkus

Description

@reitermarkus

Hi, I tried do create a monogram with this, and it fails like this:

let grams: Vec<_> = "one two three".split(' ').ngrams(1).collect();
println!("{:?}", grams);
[["one"], ["one", "two"], ["two", "three"]]

I expected this to return

[["one"], ["two"], ["three"]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions