improve signature for last
This commit is contained in:
parent
b4e97d9041
commit
1f9d4920c1
|
@ -141,10 +141,10 @@ fn rest {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn last {
|
fn last {
|
||||||
"Returns the last element of a list or tuple."
|
"Returns the last element of an indexed value: list, tuple, or string."
|
||||||
(xs) if indexed? (xs) -> base :last (xs)
|
(xs as :list) -> base :last (xs)
|
||||||
& (xs as :list) -> base :last (xs)
|
(xs as :tuple) -> base :last (xs)
|
||||||
& (xs as :tuple) -> base :last (xs)
|
(str as :string) -> base :last (str)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn inc {
|
fn inc {
|
||||||
|
|
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