Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dustinspecker/is-fibonacci-number


https://github.com/dustinspecker/is-fibonacci-number

Last synced: 2 days ago
JSON representation

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 where

import IsFibonacciNumber

validateNumber : Int -> Bool
validateNumber n =
IsFibonacciNumber.test n

validateNumber -3 -- False
validateNumber 0 -- False
validateNumber 3 -- True
validateNumber 13 -- True
```

## License
MIT © [Dustin Specker](https://github.com/dustinspecker)