exercism

Exercism solutions.
git clone git://code.dwrz.net/exercism
Log | Files | Refs

two-fer.el (362B)


      1 ;;; two-fer.el --- Two-fer Exercise (exercism)
      2 
      3 ;;; Commentary:
      4 
      5 ;;; Code:
      6 
      7 (provide 'two-fer)
      8 
      9 (defun two-fer(&optional name)
     10   "Return a twofer phrase as a formatted string.
     11 NAME, if provided, is used to specify the first recipient;
     12 it defaults to 'you'."
     13   (if (not name) (setq name "you"))
     14   (format "One for %s, one for me." name))
     15 ;;; two-fer.el ends here