numericalEFT / GreenFunc.jl

Toolbox to study quantum many-body problem at the treelevel
https://numericaleft.github.io/GreenFunc.jl/
MIT License
11 stars 1 forks source link

Support pipe operations #62

Closed kunyuan closed 2 years ago

kunyuan commented 2 years ago

Pipe operations allow something like

julia> 1:3 .|> (x -> x^2) |> sum |> sqrt
3.7416573867739413

See here for details: https://docs.julialang.org/en/v1/manual/interfaces/#man-interface-array

Make the GreenFunc operations to support pipe operations. For example,

julia> GreenObj |> to_dlr |> to_imtime