Skip to content

Proper currying #22

@tmarsteel

Description

@tmarsteel

Adapt the dynamic builtins to support proper currying. Make sure this doesn't break anything else that is more widely a standard.

E.g.:

?- C = goal(Var1), apply(C, [Var2]). % is equivalent to goal(Var1, Var2)

and

?- curry(goal, [Var1], Curried).
Curried = goal(Var1).
?- curry(goal(Var1), [Var2], Curried).
Curried = goal(Var1, Var2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions