From 1681a877113bb361a9e409837248e7d5931fcedf Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Tue, 13 Dec 2022 16:01:44 -0500 Subject: [PATCH] Update maps.jl --- src/maps.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/maps.jl b/src/maps.jl index e5e89e4..076aace 100644 --- a/src/maps.jl +++ b/src/maps.jl @@ -12,6 +12,7 @@ function fmap(f, x, ys...; exclude = isleaf, end fmapstructure(f, x; kwargs...) = fmap(f, x; walk = StructuralWalk(), kwargs...) +fmapstructure(x; kwargs...) = fmapstructure(identity, x; kwargs...) fcollect(x; exclude = v -> false) = fmap(ExcludeWalk(CollectWalk(), _ -> nothing, exclude), _ -> nothing, x)