Skip to content

Defining recursive Monadic functions #63

Open
@acjf3

Description

@acjf3

The following fails:

Define run n = \s. if 0 < n then run (n - 1n) s else ()

giving the error

Defn.prim_mk_defn:
at Defn.prim_mk_defn:
failure in internal translation to tupled format

Clearly the equivalent definition:

Define run n s = if 0 < n then run (n - 1n) s else ()

is fine.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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