diff --git a/assets/test_prelude.ld b/assets/test_prelude.ld index 8f498d6..6f662ca 100644 --- a/assets/test_prelude.ld +++ b/assets/test_prelude.ld @@ -141,10 +141,10 @@ fn rest { } fn last { - "Returns the last element of a list or tuple." - (xs) if indexed? (xs) -> base :last (xs) - & (xs as :list) -> base :last (xs) - & (xs as :tuple) -> base :last (xs) + "Returns the last element of an indexed value: list, tuple, or string." + (xs as :list) -> base :last (xs) + (xs as :tuple) -> base :last (xs) + (str as :string) -> base :last (str) } fn inc { diff --git a/pkg/rudus_bg.wasm b/pkg/rudus_bg.wasm index e2e3c06..860e8c8 100644 Binary files a/pkg/rudus_bg.wasm and b/pkg/rudus_bg.wasm differ