Skip to content

JuliaFunctional/CompositionsBase.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages