Skip to content

Lambda ruling is not explicit about multi-argument functions #244

@MichaelChirico

Description

@MichaelChirico

Use the new lambda syntax: `\(x) x + 1` when writing short anonymous functions (i.e. when you define a function in an argument without giving it an explicit name).

"an" here could be read to imply "don't use \() for functions of >1 argument", but all the examples are one-argument functions.

does the guide have opinions on functions with 0, >1, or variadic (...) arguments?

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