summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-12-03 02:02:12 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-12-03 02:02:12 +0000
commitfadeb66365cb8da2cddf3993ad139736922852ae (patch)
treef11334ac35662fbbe08b987a09e07262c6536805 /docs
parentc8bbfed0410b7181a81952fb9314d5995b0d5e2e (diff)
Add a `unique` function.
Diffstat (limited to 'docs')
-rw-r--r--docs/content/3.manual/manual.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index 0e16a495..2e616e14 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -542,6 +542,18 @@ sections:
input: '[{"foo":1, "bar":10}, {"foo":3, "bar":100}, {"foo":1, "bar":1}]'
output: ['[[{"foo":1, "bar":10}, {"foo":1, "bar":1}], [{"foo":3, "bar":100}]]']
+ - title: `unique`
+ body: |
+
+ The `unique` function takes as input an array and produces
+ an array of the same elements, in sorted order, with
+ duplicates removed.
+
+ examples:
+ - program: 'unique'
+ input: '[1,2,5,3,5,3,1,3]'
+ output: ['[1,2,3,5]']
+
- title: `contains`
body: |