diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-11 15:50:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-11 15:50:19 -0400 |
| commit | 436d2e02debe058e9968935e742e397c19de628a (patch) | |
| tree | c51d08a586ead5c4f22d3f2d12695c4a7cf6cbca /man/man3/tomo-List.unique.3 | |
| parent | 7e8604daeb9239e1669c5414dd6caa37af30c4ff (diff) | |
Improvements to set support and updating docs
Diffstat (limited to 'man/man3/tomo-List.unique.3')
| -rw-r--r-- | man/man3/tomo-List.unique.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man/man3/tomo-List.unique.3 b/man/man3/tomo-List.unique.3 index cab945b8..9ed81687 100644 --- a/man/man3/tomo-List.unique.3 +++ b/man/man3/tomo-List.unique.3 @@ -2,17 +2,17 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.unique 3 2025-09-21 "Tomo man-pages" +.TH List.unique 3 2025-10-11 "Tomo man-pages" .SH NAME List.unique \- get the unique items in a list .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI List.unique\ :\ func(list:\ [T]\ ->\ [T]) +.BI List.unique\ :\ func(list:\ [T]\ ->\ {T}) .fi .SH DESCRIPTION -Returns a list of the unique elements of the list. +Returns a set of the unique elements of the list. .SH ARGUMENTS @@ -25,9 +25,9 @@ Name Type Description Default list [T] The list to process. - .TE .SH RETURN -A list of the unique elements from the list. +A set of the unique elements from the list. .SH EXAMPLES .EX -assert [10, 20, 10, 10, 30].unique() == [10, 20, 30] +assert [10, 20, 10, 10, 30].unique() == {10, 20, 30} .EE |
