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().
findlast()
findfirst()
So what s findlast()not defined? What to do instead?
findlast Julia 0.3 - 0.4, - , findlast - . Compat, "" Julia. Compat, Pkg.add("Compat"), using Compat, findlast ( findprev).
findlast
Compat
Pkg.add("Compat")
using Compat
findprev