Skip to content

Add variables to Expr #101

Closed
Closed
@kamstrup

Description

@kamstrup

Hi - thanks for an awesome library <3

This is a feature request I guess :-) Potentially I could cook it up myself if deemed a sensible feature.

Example: I have added a parseJSON() function to my setup, and now I want to check if the resulting map has 2 keys with certain properties. In pseudocode geo = parseJSON(s); geo.lat > 0 && geo.long < 0.

Since we can't declare variables like that I was thinking something like an apply builtin that invokes a closure and returns the result. Eg: `apply(parseJSON(s), {.lat > 0 && .long < 0}).

Or maybe something like this is already possible using some other mechanism?

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