From 436d2e02debe058e9968935e742e397c19de628a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 11 Oct 2025 15:50:19 -0400 Subject: Improvements to set support and updating docs --- api/lists.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'api/lists.md') diff --git a/api/lists.md b/api/lists.md index 3ad61805..1c741989 100644 --- a/api/lists.md +++ b/api/lists.md @@ -569,21 +569,21 @@ assert [10, 20, 30, 40, 50].to(-2) == [10, 20, 30, 40] ## List.unique ```tomo -List.unique : func(list: [T] -> [T]) +List.unique : func(list: [T] -> {T}) ``` -Returns a list of the unique elements of the list. +Returns a set of the unique elements of the list. Argument | Type | Description | Default ---------|------|-------------|--------- list | `[T]` | The list to process. | - -**Return:** A list of the unique elements from the list. +**Return:** A set of the unique elements from the list. **Example:** ```tomo -assert [10, 20, 10, 10, 30].unique() == [10, 20, 30] +assert [10, 20, 10, 10, 30].unique() == {10, 20, 30} ``` ## List.where -- cgit v1.2.3