mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
typofix
This commit is contained in:
parent
fd3593bdee
commit
ac47c7052a
6 changed files with 6 additions and 6 deletions
|
|
@ -2170,7 +2170,7 @@ FUNCTIONS FOR FILTER/PUT
|
|||
(class=math #args=1) e**x - 1.
|
||||
|
||||
flatten
|
||||
(class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map, and flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
(class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map; flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
Examples:
|
||||
flatten({"a":[1,2],"b":3}, ".") is {"a.1": 1, "a.2": 2, "b": 3}.
|
||||
flatten("a", ".", {"b": { "c": 4 }}) is {"a.b.c" : 4}.
|
||||
|
|
|
|||
|
|
@ -2149,7 +2149,7 @@ FUNCTIONS FOR FILTER/PUT
|
|||
(class=math #args=1) e**x - 1.
|
||||
|
||||
flatten
|
||||
(class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map, and flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
(class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map; flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
Examples:
|
||||
flatten({"a":[1,2],"b":3}, ".") is {"a.1": 1, "a.2": 2, "b": 3}.
|
||||
flatten("a", ".", {"b": { "c": 4 }}) is {"a.b.c" : 4}.
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ depth (class=collections #args=1) Prints maximum depth of map/array. Scalars ha
|
|||
|
||||
### flatten
|
||||
<pre class="pre-non-highlight-non-pair">
|
||||
flatten (class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map, and flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
flatten (class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map; flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
Examples:
|
||||
flatten({"a":[1,2],"b":3}, ".") is {"a.1": 1, "a.2": 2, "b": 3}.
|
||||
flatten("a", ".", {"b": { "c": 4 }}) is {"a.b.c" : 4}.
|
||||
|
|
|
|||
|
|
@ -1600,7 +1600,7 @@ single-element arrays.`,
|
|||
help: `Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures
|
||||
for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and
|
||||
the second argument is the flatten separator. With three arguments, the first argument is prefix,
|
||||
the second is the flatten separator, and the third argument is a map, and flatten($*, ".") is the
|
||||
the second is the flatten separator, and the third argument is a map; flatten($*, ".") is the
|
||||
same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats"
|
||||
at ` + lib.DOC_URL + ` for more information.`,
|
||||
examples: []string{
|
||||
|
|
|
|||
|
|
@ -2149,7 +2149,7 @@ FUNCTIONS FOR FILTER/PUT
|
|||
(class=math #args=1) e**x - 1.
|
||||
|
||||
flatten
|
||||
(class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map, and flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
(class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map; flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
Examples:
|
||||
flatten({"a":[1,2],"b":3}, ".") is {"a.1": 1, "a.2": 2, "b": 3}.
|
||||
flatten("a", ".", {"b": { "c": 4 }}) is {"a.b.c" : 4}.
|
||||
|
|
|
|||
|
|
@ -2974,7 +2974,7 @@ Map example: every({"a": "foo", "b": "bar"}, func(k,v) {return $[k] == v})
|
|||
.RS 0
|
||||
.\}
|
||||
.nf
|
||||
(class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map, and flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
(class=collections #args=2,3) Flattens multi-level maps to single-level ones. Useful for nested JSON-like structures for non-JSON file formats like CSV. With two arguments, the first argument is a map (maybe $*) and the second argument is the flatten separator. With three arguments, the first argument is prefix, the second is the flatten separator, and the third argument is a map; flatten($*, ".") is the same as flatten("", ".", $*). See "Flatten/unflatten: converting between JSON and tabular formats" at https://miller.readthedocs.io for more information.
|
||||
Examples:
|
||||
flatten({"a":[1,2],"b":3}, ".") is {"a.1": 1, "a.2": 2, "b": 3}.
|
||||
flatten("a", ".", {"b": { "c": 4 }}) is {"a.b.c" : 4}.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue