MCPcopy Create free account
hub / github.com/upper/db / FastForward

Function FastForward

internal/immutable/immutable.go:17–28  ·  view source on GitHub ↗

FastForward applies all Fn methods in order on the given new Base.

(curr Immutable)

Source from the content-addressed store, hash-verified

15
16// FastForward applies all Fn methods in order on the given new Base.
17func FastForward(curr Immutable) (interface{}, error) {
18 prev := curr.Prev()
19 if prev == nil {
20 return curr.Base(), nil
21 }
22 in, err := FastForward(prev)
23 if err != nil {
24 return nil, err
25 }
26 err = curr.Fn(in)
27 return in, err
28}

Callers 9

fastForwardMethod · 0.92
buildMethod · 0.92
buildMethod · 0.92
buildMethod · 0.92
buildMethod · 0.92
buildWithCursorMethod · 0.92
buildMethod · 0.92
ExpressionsMethod · 0.92
buildMethod · 0.92

Calls 3

PrevMethod · 0.65
BaseMethod · 0.65
FnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…