FastForward applies all Fn methods in order on the given new Base.
(curr Immutable)
| 15 | |
| 16 | // FastForward applies all Fn methods in order on the given new Base. |
| 17 | func 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 | } |
no test coverage detected
searching dependent graphs…