Skip to content

More inverses? #12

@aplavin

Description

@aplavin

Do you consider inverses to two-argument Julia Base functions in scope of this package? For example:

inverse(f::Base.Fix1{typeof(+)}) = Base.Fix2(-, f.x)
inverse(f::Base.Fix1{typeof(^)}) = Base.Fix1(log, f.x)
# and so on

Originally, this came up in JuliaObjects/Accessors.jl#46, but can be useful elsewhere as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions