JanetDocsI'm feeling luckyGithub sign in

invert



    function
    boot.janet on line 1249, column 1

    (invert ds)
    
    Returns a table where the keys of an associative data structure are
    the values, and the values of the keys. If multiple keys have the same
    value, one key will be ignored.


1 exampleSign in to add an example
Loading...
(invert {:a 1 :b 2 :c 3})
# => @{3 :c 1 :a 2 :b}
sogaiu