deprecate mapparams

This commit is contained in:
Mike J Innes 2017-10-17 17:35:30 +01:00
parent 949fd9ba97
commit 1800c8f523

View File

@ -15,6 +15,9 @@ function mapleaves(f, x; cache = ObjectIdDict())
cache[x] = isleaf(x) ? f(x) : mapchildren(x -> mapleaves(f, x, cache = cache), x)
end
export mapparams
@deprecate mapparams(f, x) mapleaves(f, x)
using DataFlow: OSet
function forleaves(f, x; seen = OSet())