nestedComprehension builds `[[..[1]..]].map(vN, .. v1.map(v0, inc(v0)) ..)` at the given depth.
(depth int)
| 6681 | |
| 6682 | // nestedComprehension builds `[[..[1]..]].map(vN, .. v1.map(v0, inc(v0)) ..)` at the given depth. |
| 6683 | func nestedComprehension(depth int) string { |
| 6684 | inner := "inc(v0)" |
| 6685 | for i := 1; i < depth; i++ { |
| 6686 | inner = fmt.Sprintf("v%d.map(v%d, %s)", i, i-1, inner) |
| 6687 | } |
| 6688 | list := strings.Repeat("[", depth) + "1" + strings.Repeat("]", depth) |
| 6689 | return fmt.Sprintf("%s.map(v%d, %s)", list, depth-1, inner) |
| 6690 | } |
| 6691 | |
| 6692 | // TestLateBoundFunctionResolverTraversal asserts that resolving a late-bound function visits each |
| 6693 | // activation scope at most once, regardless of how deeply the call site is nested inside |
no outgoing calls
no test coverage detected