From c7859337ec0efb3bd9c7b7885bbecf6af34f56ed Mon Sep 17 00:00:00 2001 From: chengchingwen Date: Sun, 1 Jan 2023 14:54:50 +0800 Subject: [PATCH] used identity for alined constructor --- src/aligned.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aligned.jl b/src/aligned.jl index b81035e..693af6f 100644 --- a/src/aligned.jl +++ b/src/aligned.jl @@ -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)