Created
November 14, 2010 23:06
-
-
Save sgrove/676194 to your computer and use it in GitHub Desktop.
:vana-inflector example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> (use-package :vana-inflector) | |
> (let ((dollars 1.7) | |
(users 34) | |
(purchases 1)) | |
(format nil "The site has ~D ~A, with a total of ~D ~A and $~D ~A" | |
users (pluralize users "user") | |
purchases (pluralize purchases "purchase") | |
dollars (pluralize dollars "dollar"))) | |
"The site has 34 users, with a total of 1 purchase and $1.7 dollars" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment