Skip to content

Instantly share code, notes, and snippets.

@sgrove
Created November 14, 2010 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgrove/676194 to your computer and use it in GitHub Desktop.
Save sgrove/676194 to your computer and use it in GitHub Desktop.
:vana-inflector example
> (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