Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/is-fibonacci-number
https://github.com/dustinspecker/is-fibonacci-number
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dustinspecker/is-fibonacci-number
- Owner: dustinspecker
- License: mit
- Created: 2016-02-28T22:22:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-02-29T22:58:32.000Z (over 8 years ago)
- Last Synced: 2023-08-08T20:39:10.315Z (over 1 year ago)
- Language: Elm
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# IsFibonacciNumber [![Build Status](https://travis-ci.org/dustinspecker/is-fibonacci-number.svg?branch=master)](https://travis-ci.org/dustinspecker/is-fibonacci-number)
> Determine if an Int is a Fibonacci Number## Install
```bash
elm-package install dustinspecker/is-fibonacci-number
```## Usage
```elm
module AwesomeModule whereimport IsFibonacciNumber
validateNumber : Int -> Bool
validateNumber n =
IsFibonacciNumber.test nvalidateNumber -3 -- False
validateNumber 0 -- False
validateNumber 3 -- True
validateNumber 13 -- True
```## License
MIT © [Dustin Specker](https://github.com/dustinspecker)