deprecate mapparams
This commit is contained in:
parent
949fd9ba97
commit
1800c8f523
@ -15,6 +15,9 @@ function mapleaves(f, x; cache = ObjectIdDict())
|
|||||||
cache[x] = isleaf(x) ? f(x) : mapchildren(x -> mapleaves(f, x, cache = cache), x)
|
cache[x] = isleaf(x) ? f(x) : mapchildren(x -> mapleaves(f, x, cache = cache), x)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
export mapparams
|
||||||
|
@deprecate mapparams(f, x) mapleaves(f, x)
|
||||||
|
|
||||||
using DataFlow: OSet
|
using DataFlow: OSet
|
||||||
|
|
||||||
function forleaves(f, x; seen = OSet())
|
function forleaves(f, x; seen = OSet())
|
||||||
|
Loading…
Reference in New Issue
Block a user