new functions, doc updates

This commit is contained in:
vaclavt
2022-02-25 00:04:14 +01:00
parent c16b062267
commit 0f184461fe
5 changed files with 70 additions and 17 deletions

View File

@@ -46,9 +46,6 @@
(defn sleep (time)
(system-cmd (+ "sleep " (string time))))
(defn get-env (var)
(second (system-cmd (+ "echo ${" var "} | tr -d \"\n\""))))
(defn third (l) (index l 2))
(defn fourth (l) (index l 3))
@@ -196,7 +193,7 @@
(def c 0)
(for col row
(if (= c 0)
(def cols_str col)
(def cols_str (display col))
(def cols_str (+ cols_str "," (display col))))
(def c (inc c)))
(if (= r 0)