Add elisp/two-fer

This commit is contained in:
dwrz
2019-01-06 21:13:23 +00:00
parent 931b7618a4
commit 5fb38c0bcc
3 changed files with 55 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
;;; two-fer.el --- Two-fer Exercise (exercism)
;;; Commentary:
;;; Code:
(provide 'two-fer)
(defun two-fer(&optional name)
"Return a twofer phrase as a formatted string.
NAME, if provided, is used to specify the first recipient;
it defaults to 'you'."
(if (not name) (setq name "you"))
(format "One for %s, one for me." name))
;;; two-fer.el ends here