Julia 1.11.4withenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationwithenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Noteswithenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.13.0 DEVwithenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1withenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4withenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3withenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.12.0 beta1withenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 2047 页 | 7.41 MB | 3 月前3
julia 1.10.10withenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9withenv(f, kv::Pair...) Execute f in an environment that is temporarily modified (not replaced as in setenv) by zero or more "var"=>val arguments kv. withenv is generally used via the withenv(kv...) do 3, 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 source Base.replace! – 4]) 4-element Vector{Int64}: 2 2 6 4 julia> replace!(Dict(1=>2, 3=>4)) do kv first(kv) < 3 ? first(kv)=>3 : kv end Dict{Int64, Int64} with 2 entries: 3 => 4 1 => 3 julia> replace!(x->2x, Set([30 码力 | 1692 页 | 6.34 MB | 3 月前3
共 15 条
- 1
- 2













