Skip to content

Cannot use pattern matching in function definition #973

@rhaps0dy

Description

@rhaps0dy
lines _ _ 0 = []
lines [] _ _ = []
lines (x::xs) (y::ys) i = line x y i :: lines xs ys (i-1)

Error:
Name Collision: There can only be one definition of 'lines'.

Is this intentional? Can we add functionality to the compiler to desugar this, or should it stay the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions