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)