createEntries
This commit is contained in:
@@ -64,6 +64,7 @@ class Kiss {
|
|||||||
"expList" => Symbol("Prelude.expList"),
|
"expList" => Symbol("Prelude.expList"),
|
||||||
"map" => Symbol("Lambda.map"),
|
"map" => Symbol("Lambda.map"),
|
||||||
"filter" => Symbol("Lambda.filter"), // TODO use truthy as the default filter function
|
"filter" => Symbol("Lambda.filter"), // TODO use truthy as the default filter function
|
||||||
|
"flatten" => Symbol("Lambda.flatten"),
|
||||||
"has" => Symbol("Lambda.has"),
|
"has" => Symbol("Lambda.has"),
|
||||||
"count" => Symbol("Lambda.count")
|
"count" => Symbol("Lambda.count")
|
||||||
],
|
],
|
||||||
|
@@ -146,6 +146,10 @@
|
|||||||
(defcommand printSelectedEntries [entries (SelectedEntries null null)]
|
(defcommand printSelectedEntries [entries (SelectedEntries null null)]
|
||||||
(doFor e entries (ui.displayMessage (archive.fullString e))) [])
|
(doFor e entries (ui.displayMessage (archive.fullString e))) [])
|
||||||
|
|
||||||
(defcommand createEntry [name (Text null null)]
|
(defcommand createEntry [name (Text null)]
|
||||||
[(archive.createEntry ->e
|
[(archive.createEntry ->e
|
||||||
(addComponent archive e Name name))]))
|
(addComponent archive e Name name))])
|
||||||
|
|
||||||
|
(defcommand createEntries [names (VarText null)]
|
||||||
|
(flatten (for name names
|
||||||
|
(createEntry name)))))
|
Reference in New Issue
Block a user