1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-06 19:42:29 +00:00

Tweak kvs docstring

This commit is contained in:
Joshua Krusell
2025-09-23 11:28:06 +02:00
parent 73b1cf547e
commit aaf8ac2217

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)))