diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 14:45:39 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 14:45:39 -0400 |
| commit | 6ee5af0a16a5f1a32eb933e30d8b86ff4e691beb (patch) | |
| tree | a4ccc48bef576be1cfd4d30342eebc684474e8f5 /api/sets.yaml | |
| parent | 868ca31562dcc5d484d8f015adfa173c0a43c415 (diff) | |
Add short descriptions for API methods to improve manpages
Diffstat (limited to 'api/sets.yaml')
| -rw-r--r-- | api/sets.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/api/sets.yaml b/api/sets.yaml index 19d30f1d..6bf0d8cc 100644 --- a/api/sets.yaml +++ b/api/sets.yaml @@ -1,4 +1,5 @@ Set.add: + short: add item to a set description: > Adds an item to the set. return: @@ -18,6 +19,7 @@ Set.add: >> nums.add(42) Set.add_all: + short: add items to a set description: > Adds multiple items to the set. return: @@ -37,6 +39,7 @@ Set.add_all: >> nums.add_all([1, 2, 3]) Set.clear: + short: clear a set description: > Removes all items from the set. return: @@ -52,6 +55,7 @@ Set.clear: >> nums.clear() Set.has: + short: check if a set has an item description: > Checks if the set contains a specified item. return: @@ -72,6 +76,7 @@ Set.has: = yes Set.is_subset_of: + short: check if a set is a subset description: > Checks if the set is a subset of another set. return: @@ -97,6 +102,7 @@ Set.is_subset_of: = yes Set.is_superset_of: + short: check if a set is a superset description: > Checks if the set is a superset of another set. return: @@ -122,6 +128,7 @@ Set.is_superset_of: = yes Set.overlap: + short: set intersection description: > Creates a new set with items that are in both the original set and another set. return: @@ -142,6 +149,7 @@ Set.overlap: = |2| Set.remove: + short: remove an item from a set description: > Removes an item from the set. return: @@ -161,6 +169,7 @@ Set.remove: >> nums.remove(42) Set.remove_all: + short: remove items from a set description: > Removes multiple items from the set. return: @@ -180,6 +189,7 @@ Set.remove_all: >> nums.remove_all([1, 2, 3]) Set.with: + short: set union description: > Creates a new set that is the union of the original set and another set. return: @@ -200,6 +210,7 @@ Set.with: = |1, 2, 3| Set.without: + short: set difference description: > Creates a new set with items from the original set but without items from another set. return: |
