Skip to content

Commit

Permalink
used identity for alined constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
chengchingwen committed Jan 1, 2023
1 parent 764bd69 commit c785933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aligned.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ WalkStyle(::Type{<:AlignedStyle{W}}) where W = W()
constructor(s::ALIGNED, x::T, y::T, z::T...) where T = T
constructor(s::ALIGNED, x::NamedTuple{name}, y::NamedTuple{name}, z::NamedTuple{name}...) where name = NamedTuple{name}
constructor(s::ALIGNED, x::Union{NamedTuple, Tuple}, y::Union{NamedTuple, Tuple}, z::Union{NamedTuple, Tuple}...) = Tuple
constructor(s::ALIGNED, x, y, z...) = Vector
constructor(s::ALIGNED, x, y, z...) = identity

function children(style::ALIGNED, x)
wstyle = WalkStyle(style)
Expand Down

0 comments on commit c785933

Please sign in to comment.