Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CompositionsBase.jl: exports ∘, ⨟, compose, and opcompose

API

f ∘ g
g ⨟ f
compose(f, g)
opcompose(g, f)

Composition of morphisms. ∘ is the operator defined in Base. CompositionsBase.jl defines the opposite composition operator ⨟ as

⨟(fs...) = ∘(reverse(fs)...)

and also the ASCII aliases compose and opcompose.

As ⨟, compose, and opcompose are all defined in terms of ∘, single-argument call is the identity function.

Examples

julia> using CompositionsBase

julia> tuple ∘ inv === compose(tuple, inv) === inv ⨟ tuple === opcompose(inv, tuple)
true

julia> ∘(tuple) === compose(tuple) === ⨟(tuple) === opcompose(tuple) === tuple
true

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages