We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77b7468 + a63ba4f commit d2f7bf8Copy full SHA for d2f7bf8
examples/distinct.janet
@@ -0,0 +1,8 @@
1
+(distinct @[1 2 3 2 1]) # -> @[1 2 3]
2
+
3
+(distinct [1 2 3 2 1]) # -> @[1 2 3]
4
5
+(distinct "bookkeeper") # -> @[98 111 107 101 112 114]
6
7
+(sort (map string/from-bytes
8
+ (distinct "bookkeeper"))) # -> @["b" "e" "k" "o" "p" "r"]
0 commit comments