Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,7 @@
s = [1, 2, 2, 3, 4, 4, 5]
for i in eachindex(s)
curr = s[i]
i > 1 && curr == prev && println(i)
prev = curr
end

View file

@ -0,0 +1,9 @@
s = [1, 2, 2, 3, 4, 4, 5]
prev = -1
for i in eachindex(s)
global prev
curr = s[i]
i > 1 && curr == prev && println(i)
prev = curr
end

View file

@ -0,0 +1,5 @@
s = [1, 2, 2, 3, 4, 4, 5]
for i in eachindex(s)[begin+1:end] # or 2:length(s)
s[i] == s[i - 1] && println(i)
end