Closed
Description
Using filter
gives no deprecation warning:
| | |_| | | | (_| | | Version 0.6.0-pre.beta.83 (2017-04-08 21:57 UTC)
_/ |\__'_|_|_|\__'_| | Commit 965c938eb* (0 days old master)
|__/ | x86_64-apple-darwin16.0.0
julia> v = [1, 2, 3, 4, 5]
5-element Array{Int64,1}:
1
2
3
4
5
julia> filter(x->x>3, v)
2-element Array{Int64,1}:
4
5
Metadata
Metadata
Assignees
Labels
No labels
Activity
yuyichao commentedon Apr 9, 2017
I don't think it's deprecated.
yuyichao commentedon Apr 9, 2017
Ref #18839 (comment)
dpsanders commentedon Apr 9, 2017
As far as I understand,
filter
was moved toIterators.filter
:https://github.com/JuliaLang/julia/blob/master/base/deprecated.jl#L383
yuyichao commentedon Apr 9, 2017
See my comment above.
Base.filter
andIterators.filter
(IterTools.filter
in the first version of the linked PR) are two different functions. The deprecation was only added so that the separated function can still be used fromBase.filter
with a depwarn. Other methods are NOT deprecated.dpsanders commentedon Apr 9, 2017
OK thanks.