JanetDocsPlaygroundI'm feeling luckyGitHub sign in

from-pairs



    function
    boot.janet on line 1656, column 1

    (from-pairs ps)

    Takes a sequence of pairs and creates a table from each pair. It is 
    the inverse of `pairs` on a table. Returns a new table.


2 examplesSign in to add an example
Loading...
(from-pairs [[:hello "world"] [:foo "bar"]]) 

# => @{:foo "bar" :hello "world"}
jgartePlayground
(from-pairs [[:a 1] [:b 2]])
# => @{:a 1 :b 2}
swlkrPlayground