Compare commits
3 Commits
8ccb8e17ae
...
654e2eeae7
Author | SHA1 | Date | |
---|---|---|---|
|
654e2eeae7 | ||
|
1f1efaebb2 | ||
|
4740692f64 |
|
@ -854,6 +854,12 @@ fn slice_n {
|
|||
(str as :string, start as :number, n as :number) -> slice (str, start, add (start, n))
|
||||
}
|
||||
|
||||
fn last_n {
|
||||
"Returns a list or string containing the last n elements of a list or string."
|
||||
(xs as :list, n as :number) -> slice_n (xs, sub (count (xs), n), n)
|
||||
(str as :string, n as :number) -> slice_n (str, sub (count (str), n), n)
|
||||
}
|
||||
|
||||
fn butlast {
|
||||
"Returns a list, omitting the last element."
|
||||
(xs as :list) -> slice (xs, 0, dec (count (xs)))
|
||||
|
@ -1609,6 +1615,7 @@ fn key_down? {
|
|||
keys_down
|
||||
keyword?
|
||||
last
|
||||
last_n
|
||||
left!
|
||||
link!
|
||||
list
|
||||
|
|
BIN
pkg/rudus_bg.wasm
(Stored with Git LFS)
BIN
pkg/rudus_bg.wasm
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue
Block a user