Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/list-join-conjunction
Join a List with a conjunction
https://github.com/dustinspecker/list-join-conjunction
Last synced: 2 days ago
JSON representation
Join a List with a conjunction
- Host: GitHub
- URL: https://github.com/dustinspecker/list-join-conjunction
- Owner: dustinspecker
- License: mit
- Created: 2016-03-01T00:49:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-07T22:42:16.000Z (over 8 years ago)
- Last Synced: 2023-08-08T20:39:09.836Z (over 1 year ago)
- Language: Elm
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# ListJoinConjunction [![Build Status](https://travis-ci.org/dustinspecker/list-join-conjunction.svg?branch=master)](https://travis-ci.org/dustinspecker/list-join-conjunction) [![Elm Docs](https://img.shields.io/badge/elm-docs-brightgreen.svg)](http://package.elm-lang.org/packages/dustinspecker/list-join-conjunction/latest)
> Join a List with a conjunction## Install
```bash
elm-package install dustinspecker/list-join-conjunction
```## Usage
```elm
module AwesomeModule whereimport ListJoinConjunction
formattedString : List String -> String
formattedString conjunction list =
ListJoinConjunction.make "and" listformattedString "and" [ "red", "blue" ] -- "red and blue"
formattedString "or" [ "red", "blue", "white" ] -- "red, blue, or white"
```## License
MIT © [Dustin Specker](https://github.com/dustinspecker)