Skip to content

Refactor 'tappend' #2

@ocramz

Description

@ocramz

in Data.Align, 'tappend' is clearly partial, moreover it discards some information (the tail of the second Trace). Isn't there a better way to do this?

mt `tappend` (Trace z (t:_)) =
    fmap (\(Trace s ts) -> Trace (s+z) (t:ts)) mt

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