-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
- Loading branch information
1 parent
8b1ade5
commit 804435f
Showing
194 changed files
with
1,596 additions
and
185 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
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,15 @@ | ||
# abs | ||
|
||
## Signature | ||
|
||
`abs(number)` | ||
|
||
## Description | ||
|
||
Returns the absolute value of the provided argument. | ||
|
||
## Examples | ||
|
||
``` | ||
abs(`-1`) == `1` | ||
``` |
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,13 @@ | ||
# add | ||
|
||
## Signature | ||
|
||
`add(any, any)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,13 @@ | ||
# as_string | ||
|
||
## Signature | ||
|
||
`as_string(any)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,13 @@ | ||
# at | ||
|
||
## Signature | ||
|
||
`at(array, any)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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 @@ | ||
# avg | ||
|
||
## Signature | ||
|
||
`avg(array[number])` | ||
|
||
## Description | ||
|
||
Returns the average of the elements in the provided array. An empty array will produce a return value of null. | ||
|
||
## Examples | ||
|
||
``` | ||
avg([`10`,`15`,`20`]) == `15` | ||
``` |
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,13 @@ | ||
# base64_decode | ||
|
||
## Signature | ||
|
||
`base64_decode(string)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,13 @@ | ||
# base64_encode | ||
|
||
## Signature | ||
|
||
`base64_encode(string)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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 @@ | ||
# ceil | ||
|
||
## Signature | ||
|
||
`ceil(number)` | ||
|
||
## Description | ||
|
||
Returns the next highest integer value by rounding up if necessary. | ||
|
||
## Examples | ||
|
||
``` | ||
ceil(`1.9`) == `2` | ||
``` |
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,13 @@ | ||
# compare | ||
|
||
## Signature | ||
|
||
`compare(string, string)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,13 @@ | ||
# concat | ||
|
||
## Signature | ||
|
||
`concat(string, string)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,32 @@ | ||
# contains | ||
|
||
## Signature | ||
|
||
`contains(array|string, any)` | ||
|
||
## Description | ||
|
||
Returns `true` if the given subject contains the provided search value. If the subject is an array, this function returns `true` if one of the elements in the array is equal to the provided search value. If the provided subject is a string, this function returns `true` if the string contains the provided search argument. | ||
|
||
## Examples | ||
|
||
### With strings | ||
|
||
``` | ||
contains('foobar', 'bar') == true | ||
``` | ||
|
||
``` | ||
contains('foobar', 'not') == false | ||
``` | ||
|
||
### With arrays | ||
|
||
|
||
``` | ||
contains(['foo', 'bar'], 'bar') == true | ||
``` | ||
|
||
``` | ||
contains(['foo', 'bar'], 'not') == true | ||
``` |
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,13 @@ | ||
# divide | ||
|
||
## Signature | ||
|
||
`divide(any, any)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,19 @@ | ||
# ends_with | ||
|
||
## Signature | ||
|
||
`ends_with(string, string)` | ||
|
||
## Description | ||
|
||
Reports whether the given string ends with the provided suffix argument. | ||
|
||
## Examples | ||
|
||
``` | ||
ends_with('foobar', 'bar') == true | ||
``` | ||
|
||
``` | ||
ends_with('foobar', 'foo') == 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,13 @@ | ||
# env | ||
|
||
## Signature | ||
|
||
`env(string)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,13 @@ | ||
# equal_fold | ||
|
||
## Signature | ||
|
||
`equal_fold(string, string)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,31 @@ | ||
# find_first | ||
|
||
## Signature | ||
|
||
`find_first(string, string, number, number)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
``` | ||
find_first('subject string', 'string', `0`) == `8` | ||
``` | ||
|
||
``` | ||
find_first('subject string', 'string', `8`) == `8` | ||
``` | ||
|
||
``` | ||
find_first('subject string', 'string', `9`) == null | ||
``` | ||
|
||
``` | ||
find_first('subject string', 'string', `0`, `14`) == `8` | ||
``` | ||
|
||
``` | ||
find_first('subject string', 'string', `0`, `13`) == null | ||
``` |
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,31 @@ | ||
# find_last | ||
|
||
## Signature | ||
|
||
`find_last(string, string, number, number)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
``` | ||
find_last('subject string', 'string', `0`) == `8` | ||
``` | ||
|
||
``` | ||
find_last('subject string', 'string', `8`) == `8` | ||
``` | ||
|
||
``` | ||
find_last('subject string', 'string', `9`) == null | ||
``` | ||
|
||
``` | ||
find_last('subject string', 'string', `0`, `14`) == `8` | ||
``` | ||
|
||
``` | ||
find_last('subject string', 'string', `0`, `13`) == null | ||
``` |
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 @@ | ||
# floor | ||
|
||
## Signature | ||
|
||
`floor(number)` | ||
|
||
## Description | ||
|
||
Returns the next lowest integer value by rounding down if necessary. | ||
|
||
## Examples | ||
|
||
``` | ||
floor(`1.9`) == `1` | ||
``` |
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,13 @@ | ||
# from_items | ||
|
||
## Signature | ||
|
||
`from_items(array[array])` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,13 @@ | ||
# group_by | ||
|
||
## Signature | ||
|
||
`group_by(array, expref)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,13 @@ | ||
# items | ||
|
||
## Signature | ||
|
||
`items(object|array, string, string)` | ||
|
||
## Description | ||
|
||
|
||
|
||
## Examples | ||
|
||
TODO |
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,13 @@ | ||
# join | ||
|
||
## Signature | ||
|
||
`join(string, array[string])` | ||
|
||
## Description | ||
|
||
Returns all of the elements from the provided array joined together using the glue argument as a separator between each. | ||
|
||
## Examples | ||
|
||
TODO |
Oops, something went wrong.