MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / nested

Function nested

atomic-canonical/tests/depth_boundary.rs:45–47  ·  view source on GitHub ↗

The value `depth/ .json` denotes, built by a loop rather than by a parse.

(d: usize)

Source from the content-addressed store, hash-verified

43
44/// The value `depth/<d>.json` denotes, built by a loop rather than by a parse.
45fn nested(d: usize) -> Value {
46 (0..d).fold(Value::Null, |inner, _| Value::Array(vec![inner]))
47}
48
49/// One under the cap: admitted, and it is the value the loop builds.
50#[test]

Calls 1

foldMethod · 0.45

Tested by

no test coverage detected