elisp-utils.el 223 B

12345678
  1. (defun elisp-utils/starts-with (s arg)
  2. "returns non-nil if string S starts with ARG. Else nil."
  3. (cond ((>= (length s) (length arg))
  4. (string-equal (substring s 0 (length arg)) arg))
  5. (t nil)))
  6. (provide 'elisp-utils)