mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ditch fennel ? (#3)
yes Reviewed-on: https://git.earth2077.fr/leana/.files/pulls/3 Co-authored-by: Léana 江 <leana.jiang@icloud.com> Co-committed-by: Léana 江 <leana.jiang@icloud.com>
This commit is contained in:
parent
d0cb07df6d
commit
b81732fcf2
41 changed files with 1370 additions and 1114 deletions
|
|
@ -1,21 +0,0 @@
|
|||
(local M {})
|
||||
|
||||
(lambda M.req-plugins! [ns]
|
||||
`(each [_# n# (ipairs ,ns)]
|
||||
(require (.. :plugins._ n#))))
|
||||
|
||||
(lambda M.fst! [obj]
|
||||
`(. ,obj 1))
|
||||
|
||||
(lambda M.snd! [obj]
|
||||
`(. ,obj 2))
|
||||
|
||||
(lambda M.req-do! [module callback]
|
||||
`(,callback (require ,module)))
|
||||
|
||||
(lambda M.elem! [obj tbl]
|
||||
`(each [_# v# (pairs ,tbl)]
|
||||
(when (= v# ,obj) (lua "return true"))
|
||||
false))
|
||||
|
||||
M
|
||||
Loading…
Add table
Add a link
Reference in a new issue