Skip to content

Optimize treefix operations #17

@VictorCMiraldo

Description

@VictorCMiraldo

It is very common to ues code such as:

... $ utxMap f $ utxLCP p q

which can be fused with a better utxLCPWith:

... $ utxLCPWith f p q

utxLCPWith :: (forall at . UTx phi at -> UTx psi at -> res at)
                   -> UTx phi at -> UTx psi at -> UTx res at

utxLCP = utxLCPWith (:*:)

Another pattern we can optimize is the

... $ foldr f e $ utxGetHolesWith' g p

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions