Skip to content

dustinspecker/conjunction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conjunction

Combine a list of strings with a conjunction

Build Status

Install

In mix.exs:

def deps do
  [{:conjunction, "~> 1.0.2"}]
end

Then run mix deps.get.

Usage

Conjunction.join(["red", "blue"])
# => "red and blue"

Conjunction.join(["red", "blue"], "or")
# => "red or blue"

Conjunction.join(["red", "blue", "white"])
# => "red, blue, and white"

Conjunction.join(["red", "blue", "white"], "or")
# => "red, blue, or white"

License

MIT © Dustin Specker

About

Combine a list of strings with a conjunction

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages