Skip to content

Commit cf0f32d

Browse files
Stephan SahmStephan Sahm
authored andcommitted
simplifying foreach implementation
1 parent 00010d6 commit cf0f32d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ContextManager.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ end
8585
Base.eltype(::Type{<:ContextManager}) = Any
8686

8787
function Base.foreach(f, c::ContextManager)
88-
Base.map(f, c)(x -> x)
88+
c(f)
8989
nothing
9090
end
9191

0 commit comments

Comments
 (0)