Where is the Julia findlast () function?

Using Julia 0.3.8, I try this:

julia> t = [0 0 0 1 1 1 0 0 ]
1x8 Array{Int64,2}:
 0  0  0  1  1  1  0  0

julia> findfirst(t)
4

julia> findlast(t)
ERROR: findlast not defined

According to http://julia.readthedocs.org/en/latest/stdlib/arrays/ findlast() exists, nothing special compared to findfirst().

So what s findlast()not defined? What to do instead?

+4
source share
1 answer

findlast Julia 0.3 - ​​ 0.4, - , findlast - . Compat, "" Julia. Compat, Pkg.add("Compat"), using Compat, findlast ( findprev).

+6

All Articles