-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#67
length
returns the size of array or length of the string. Add `… (
#68) * #67 `length` returns the size of array or length of the string. Add `size` function to provide the count of internal elements of arrays and objects.
- Loading branch information
Showing
7 changed files
with
147 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
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 |
---|---|---|
|
@@ -53,7 +53,7 @@ func main() { | |
You can download `ajson` cli from the [release page](https://github.com/spyzhov/ajson/releases), or install from the source: | ||
|
||
```shell script | ||
go get github.com/spyzhov/ajson/cmd/[email protected].1 | ||
go get github.com/spyzhov/ajson/cmd/[email protected].2 | ||
``` | ||
|
||
Usage: | ||
|
@@ -325,7 +325,7 @@ Package has several predefined functions. | |
j1 math.J1 integers, floats | ||
key Key of element string | ||
last Get last element any | ||
length len array | ||
length Length of array array, string | ||
log math.Log integers, floats | ||
log10 math.Log10 integers, floats | ||
log1p math.Log1p integers, floats | ||
|
@@ -341,6 +341,7 @@ Package has several predefined functions. | |
roundtoeven math.RoundToEven integers, floats | ||
sin math.Sin integers, floats | ||
sinh math.Sinh integers, floats | ||
size Count of elements array, object | ||
sum Sum array of integers or floats | ||
sqrt math.Sqrt integers, floats | ||
tan math.Tan integers, floats | ||
|
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
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