JanetDocsPlaygroundI'm feeling luckyGitHub sign in

distinct



    function
    boot.janet on line 1624, column 1

    (distinct xs)

    Returns an array of the deduplicated values in `xs`.


1 exampleSign in to add an example
Loading...
(distinct [1 1 2 3])  # => @[1 2 3]

(distinct "hello")  # => @[104 101 108 111]
(string/from-bytes (splice (distinct "hello")))  # => "helo"
cellularmitosisPlayground