Skip to content

Inject matched variables into where predicate scope #54

@HarrisonGrodin

Description

@HarrisonGrodin

Predicates written in @term RULES using the where clause could benefit from some syntactic sugar. Rather than having to explicitly index into the given match, the scope could automatically be aware of the variables.

(abs(x) => x) where-> isvalid(Image(σ[x], Nonnegative))}  # current
(abs(x) => x) where {isvalid(Image(x, Nonnegative))}  # proposed

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions