Function
newRecursive
(it graph.IteratorShape, morphism Morphism2, maxDepth int)
Source from the content-addressed store, hash-verified
| 56 | } |
| 57 | |
| 58 | func newRecursive(it graph.IteratorShape, morphism Morphism2, maxDepth int) *recursive { |
| 59 | if maxDepth == 0 { |
| 60 | maxDepth = DefaultMaxRecursiveSteps |
| 61 | } |
| 62 | return &recursive{ |
| 63 | subIt: it, |
| 64 | morphism: morphism, |
| 65 | maxDepth: maxDepth, |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func (it *recursive) Iterate() graph.Scanner { |
| 70 | return newRecursiveNext(it.subIt.Iterate(), it.morphism, it.maxDepth, it.depthTags) |
Tested by
no test coverage detected