fix
This commit is contained in:
parent
99b739cf00
commit
af2e6b7e1d
@ -10,7 +10,7 @@ function treelike(T, fs = fieldnames(T))
|
||||
@eval current_module() begin
|
||||
children(x::$T) = ($([:(x.$f) for f in fs]...),)
|
||||
mapchildren(f, x::$T) = $T(f.(children(x))...)
|
||||
adapt(T, x::$T) = mapchildren(x -> adapt(T, x), x)
|
||||
adapt(T, x::$T) = mapleaves(x -> adapt(T, x), x)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user