Skip to content

Match for binary-size fails #5

@Thor77

Description

@Thor77

As binary-size is only valid in patterns, creating a match for it fails:

defpat weekday([<<weekday::binary-size(2), " : ">>])

Kernel.match?(weekday(weekday), "Mo : ")

Is there a workaround for this?

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