Remove experimental std directory
This commit is contained in:
parent
415c9863e6
commit
49159d379f
29
std/list.ds
29
std/list.ds
@ -1,29 +0,0 @@
|
||||
contains <([any], any) -> bool> = fn |list, target| {
|
||||
for item in list {
|
||||
if item == target {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
false
|
||||
}
|
||||
|
||||
find <([any], any) -> bool> = fn |list, target| {
|
||||
for item in list {
|
||||
if item == target {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
reverse <([any]) -> [any]> = fn |list| {
|
||||
new_list = []
|
||||
index = (length list) - 1;
|
||||
|
||||
while index >= 0 {
|
||||
new_list += list:index
|
||||
index -= 1
|
||||
}
|
||||
|
||||
new_list
|
||||
}
|
Loading…
Reference in New Issue
Block a user