@@ -1523,8 +1523,7 @@ julia> A = [false, false, true, false]
15231523julia> findnext(A, 1)
152415243
15251525
1526- julia> findnext(A, 4) == nothing
1527- true
1526+ julia> findnext(A, 4) # returns nothing, but not printed in the REPL
15281527
15291528julia> A = [false false; true false]
153015292×2 Array{Bool,2}:
@@ -1575,8 +1574,7 @@ julia> A = [false, false, true, false]
15751574julia> findfirst(A)
157615753
15771576
1578- julia> findfirst(falses(3)) == nothing
1579- true
1577+ julia> findfirst(falses(3)) # returns nothing, but not printed in the REPL
15801578
15811579julia> A = [false false; true false]
158215802×2 Array{Bool,2}:
@@ -1615,23 +1613,14 @@ and [`pairs(A)`](@ref).
16151613
16161614# Examples
16171615```jldoctest
1618- A = [1, 4, 2, 2]
1619- 4-element Array{Int64,1}:
1620- 1
1621- 4
1622- 2
1623- 2
1616+ julia> A = [1, 4, 2, 2];
16241617
16251618julia> findnext(isodd, A, 1)
162616191
16271620
1628- julia> findnext(isodd, A, 2) == nothing
1629- true
1621+ julia> findnext(isodd, A, 2) # returns nothing, but not printed in the REPL
16301622
1631- julia> A = [1 4; 2 2]
1632- 2×2 Array{Int64,2}:
1633- 1 4
1634- 2 2
1623+ julia> A = [1 4; 2 2];
16351624
16361625julia> findnext(isodd, A, CartesianIndex(1, 1))
16371626CartesianIndex(1, 1)
@@ -1670,8 +1659,7 @@ julia> A = [1, 4, 2, 2]
16701659julia> findfirst(iseven, A)
167116602
16721661
1673- julia> findfirst(x -> x>10, A) == nothing
1674- true
1662+ julia> findfirst(x -> x>10, A) # returns nothing, but not printed in the REPL
16751663
16761664julia> findfirst(equalto(4), A)
167716652
@@ -1717,8 +1705,7 @@ julia> A = [false, false, true, true]
17171705julia> findprev(A, 3)
171817063
17191707
1720- julia> findprev(A, 1) == nothing
1721- true
1708+ julia> findprev(A, 1) # returns nothing, but not printed in the REPL
17221709
17231710julia> A = [false false; true true]
172417112×2 Array{Bool,2}:
@@ -1767,8 +1754,7 @@ julia> findlast(A)
17671754
17681755julia> A = falses(2,2);
17691756
1770- julia> findlast(A) == nothing
1771- true
1757+ julia> findlast(A) # returns nothing, but not printed in the REPL
17721758
17731759julia> A = [true false; true false]
177417602×2 Array{Bool,2}:
@@ -1814,8 +1800,7 @@ julia> A = [4, 6, 1, 2]
18141800 1
18151801 2
18161802
1817- julia> findprev(isodd, A, 1) == nothing
1818- true
1803+ julia> findprev(isodd, A, 1) # returns nothing, but not printed in the REPL
18191804
18201805julia> findprev(isodd, A, 3)
182118063
@@ -1859,8 +1844,7 @@ julia> A = [1, 2, 3, 4]
18591844julia> findlast(isodd, A)
186018453
18611846
1862- julia> findlast(x -> x > 5, A) == nothing
1863- true
1847+ julia> findlast(x -> x > 5, A) # returns nothing, but not printed in the REPL
18641848
18651849julia> A = [1 2; 3 4]
186618502×2 Array{Int64,2}:
@@ -1965,9 +1949,9 @@ julia> A = [true false; false true]
19651949 false true
19661950
19671951julia> findall(A)
1968- 2-element Array{Int64 ,1}:
1969- 1
1970- 4
1952+ 2-element Array{CartesianIndex{2} ,1}:
1953+ CartesianIndex(1, 1)
1954+ CartesianIndex(2, 2)
19711955
19721956julia> findall(falses(3))
197319570-element Array{Int64,1}
@@ -2137,9 +2121,9 @@ array contains `nothing` wherever `a` is not a member of `b`.
21372121
21382122# Examples
21392123```jldoctest
2140- julia> a = ['a', 'b', 'c', 'b', 'd', 'a']
2124+ julia> a = ['a', 'b', 'c', 'b', 'd', 'a'];
21412125
2142- julia> b = ['a', 'b', 'c']
2126+ julia> b = ['a', 'b', 'c'];
21432127
21442128julia> indexin(a, b)
214521296-element Array{Union{Nothing, Int64},1}:
0 commit comments