Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/last
https://github.com/dustinspecker/last
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dustinspecker/last
- Owner: dustinspecker
- License: mit
- Created: 2016-03-01T01:45:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-05T22:27:16.000Z (over 8 years ago)
- Last Synced: 2023-08-08T20:39:09.647Z (over 1 year ago)
- Language: Elm
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Last [![Build Status](https://travis-ci.org/dustinspecker/last.svg?branch=master)](https://travis-ci.org/dustinspecker/last) [![Elm Docs](https://img.shields.io/badge/elm-docs-brightgreen.svg)](http://package.elm-lang.org/packages/dustinspecker/last/latest)
> Get the last element from a List.## Install
```bash
elm-package install dustinspecker/last
```## Usage
```elm
module AwesomeModule whereimport Last
Last.fromList [] -- Nothing
Last.fromList [ 1 ] -- Just 1
Last.fromList [ "yo", "hello" ] -- Just "hello"
```## License
MIT © [Dustin Specker](https://github.com/dustinspecker)