Skip to content

Introduce FunctionalList #1

@nielstron

Description

@nielstron

A functional list is a functional tuple that has two elements: head and tail.

This can be used to entirely substitute for the UPLC builtin list. A builtin list can also be trivially wrapped in a functional list

let g = (\f l -> (\x -> !(x (#(! HeadList l)) (#(f (! TailList l))))) in g g

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions