JanetDocsPlaygroundI'm feeling luckyGitHub sign in

from-pairs



    function
    boot.janet on line 1594, column 1

    (from-pairs ps)

    Takes a sequence of pairs and creates a table from each pair. The 
    inverse of `pairs` on a 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