Visualize a tree: Difference between revisions
m
→{{header|jq}}: documentation
m (→{{header|jq}}: documentation) |
|||
Line 2,754:
</pre>
# Output: a stream of strings representing
# In this implementation, empty arrays in
def printTree:
Line 2,763:
| sub("├─"; "| ") ;
# Input: a string prefix
def print($tree):
if $tree|type != "array" then . + ($tree|tostring)
|