(->> (all-bindings)
(keep (fn [sym]
(when (string/has-prefix? "peg/" (string sym))
(string sym))))
sort)
# =>
@["peg/compile"
"peg/find"
"peg/find-all"
"peg/match"
"peg/replace"
"peg/replace-all"]
# from https://github.com/sogaiu/margaret/blob/master/tutorials/tutorial.janet