Skip to content

Pattern Matching #14

Open
Open
@MatheusRich

Description

@MatheusRich
[a, b] = [1,2,3]
# or
[a, *b] = [1,2,3]

assert(a == 1)
assert(b == [2, 3])

How to implement: https://gleam.run/news/v0.33-exhaustive-gleam/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions