1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-02 16:43:02 +00:00

Merge pull request #1649 from jsks/kvs-docstring

This commit is contained in:
Calvin Rose
2025-09-23 06:42:51 -05:00
committed by GitHub

View File

@@ -1803,8 +1803,8 @@
(flatten-into @[] xs))
(defn kvs
``Takes a table or struct and returns and array of key value pairs
like `@[k v k v ...]`. Returns a new array.``
``Takes a table or struct and returns a new array of key value pairs
like `@[k v k v ...]`.``
[dict]
(def ret @[])
(loop [k :keys dict] (array/push ret k (in dict k)))