diff --git a/src/lib/turtle/Helper.hx b/src/lib/turtle/Helper.hx index 320c276..564102a 100644 --- a/src/lib/turtle/Helper.hx +++ b/src/lib/turtle/Helper.hx @@ -14,4 +14,16 @@ class Helper { return Success(null); } + + public static function combine(steps:ArrayOutcome>):Outcome { + for (step in steps) { + var res = step(); + + if (!res.isSuccess()) { + return res; + } + } + + return Success(null); + } }