Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Search-a-list/Lingo/search-a-list.lingo
Normal file
11
Task/Search-a-list/Lingo/search-a-list.lingo
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
haystack = ["apples", "oranges", "bananas", "oranges"]
|
||||
needle = "oranges"
|
||||
|
||||
pos = haystack.getPos(needle)
|
||||
if pos then
|
||||
put "needle found at index "&pos
|
||||
else
|
||||
put "needle not found in haystack"
|
||||
end if
|
||||
|
||||
-- "needle found at index 2"
|
||||
Loading…
Add table
Add a link
Reference in a new issue