Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Iterators.map #34352

Merged
merged 13 commits into from
Jun 18, 2020
Prev Previous commit
Next Next commit
Unexport Iterators.map
  • Loading branch information
tkf committed Jan 13, 2020
commit e8f14a31ef3990e258eeda4e84b230bafc48dacd
2 changes: 1 addition & 1 deletion base/iterators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import .Base:
getindex, setindex!, get, iterate,
popfirst!, isdone, peek

export enumerate, zip, rest, countfrom, take, drop, takewhile, dropwhile, cycle, repeated, product, flatten, partition, map
export enumerate, zip, rest, countfrom, take, drop, takewhile, dropwhile, cycle, repeated, product, flatten, partition

"""
Iterators.map(f, iterators...)
Expand Down
2 changes: 0 additions & 2 deletions test/iterators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using Base.Iterators
using Random

using Base: map

# zip and filter iterators
# issue #4718
@test collect(Iterators.filter(x->x[1], zip([true, false, true, false],"abcd"))) == [(true,'a'),(true,'c')]
Expand Down