-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maurits Rijk
committed
Apr 13, 2017
1 parent
145696b
commit ac1372f
Showing
7 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"gitbook": "2.5.2", | ||
"gitbook": "2.x.x", | ||
"structure": { | ||
"summary": "docs/SUMMARY.md" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
Descriptions for the different functions where copied from the original | ||
[clojure.spec api description](https://clojure.github.io/clojure/branch-master/clojure.spec-api.html). | ||
|
||
| clojure.spec | speculaas | | ||
|:---------:|:--------:| | ||
| & | amp | | ||
| + | plus | | ||
| * | star | | ||
| col-of | colOf | | ||
| clojure.spec | speculaas | | ||
|:-------------:|:------------:| | ||
| & | [amp](api/amp.md) | | ||
| + | [plus](api/plus.md) | | ||
| * | [star](api/star.md) | | ||
| coll-of | [collOf](api/collOf.md) | | ||
| double-in | [doubleIn](api/doubleIn.md) | | ||
| int-in | [intIn](api/intIn.md) | | ||
| int-in-range? | [isIntInRange](api/isIntInRange.md) | | ||
| map-of | [mapOf](api/mapOf.md) | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
isIntInRange | ||
===== | ||
|
||
Usage: ```isIntInRange(start, end, val)``` | ||
|
||
Return true if start <= val and val < end | ||
|
||
[Source](https://github.com/mrijk/speculaas/blob/master/lib/intIn.js) | ||
|
||
Example: | ||
|
||
```js | ||
const s = require('speculaas'); | ||
|
||
s.isIntInRange(0, 13, 0); | ||
// true | ||
|
||
s.isIntInRange(0, 13, -42); | ||
// false | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
keys | ||
===== | ||
|
||
Usage: ```keys(...)``` | ||
|
||
Creates and returns a map validating spec. | ||
|
||
[Source](https://github.com/mrijk/speculaas/blob/master/lib/keys.js) | ||
|
||
Example: | ||
|
||
```js | ||
const s = require('speculaas'); | ||
const {isBoolean, isString} = require('lodash'); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters