awesome/lib/std.fnl

25 lines
318 B
Plaintext
Raw Normal View History

2019-01-15 11:20:10 +11:00
;;; std.fnl --- A small standard library
;;; Commentary:
;; Porting a few functions that I'm used to from other Lisps.
;;; Code:
(var std {})
;;;
;; Functions
(fn std.zero? [n]
(= 0 n))
(fn std.fn? [f]
(= (type f) :function))
(fn std.s-empty? [s]
(or (= nil s)
(= "" s)))
2019-01-15 11:20:10 +11:00
std
;;; std.fnl ends here