How to filter keys of a dictionary without depwarn?

How to filter keys of a dictionary without depwarn?

julia> using Iterators; Iterators.filter(iseven, keys(Dict()))
WARNING: filter(flt, itr) is deprecated, use Iterators.filter(flt, itr) instead.

Try

using Base.Iterators

2 Likes

Ah I see I was using the deprecated Iterators.jl. Thanks!