Skip to content

"sum of all the fields on all lines" wrongly combines last-of-line with first-of-next-line #29

Open
@timo

Description

@timo

you're calling .split on an array, which will first stringify the array by inserting single spaces between the lines and then splitting it by "\t". That causes fields from the end of one line and the beginning of the next line to be considered a single field with a space in the middle.

you'll need something like lines>>.split("\t")>>.Slip.&flat or lines.join("\t").split("\t") to get the right behavior

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