Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -5,9 +5,9 @@ public program()
|
|||
{
|
||||
var haystack := new string[]{"Zig", "Zag", "Wally", "Ronald", "Bush", "Krusty", "Charlie", "Bush", "Bozo"};
|
||||
|
||||
new string[]{"Washington", "Bush"}.forEach:(needle)
|
||||
new string[]{"Washington", "Bush"}.forEach::(needle)
|
||||
{
|
||||
var index := haystack.indexOfElement:needle;
|
||||
var index := haystack.indexOfElement(needle);
|
||||
|
||||
if (index == -1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import "/seq" for Lst
|
||||
import "./seq" for Lst
|
||||
|
||||
var find = Fn.new { |haystack, needle|
|
||||
var res = Lst.indicesOf(haystack, needle)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue