Utility functions to deal with the logic behind step ids: step-ids are a sequence of numbers that represent the structure of the pipeline.
Examples:
[1]
is the first step of the pipeline[2 1]
is the second child of the first step of the pipeline.For detailed examples on these functions, refer to their tests.
Utility functions to deal with the logic behind step ids: step-ids are a sequence of numbers that represent the structure of the pipeline. Examples: * `[1]` is the first step of the pipeline * `[2 1]` is the second child of the first step of the pipeline. For detailed examples on these functions, refer to their [tests](https://github.com/flosell/lambdacd/blob/master/test/clj/lambdacd/step_id_test.clj).
(before? a b)
Returns true if for two steps, the step with id b is executed after a in the pipeline.
Returns true if for two steps, the step with id b is executed after a in the pipeline.
(child-id parent-step-id child-number)
Returns a step id for the child-number
th child of the step with id parent-step-id
.
Returns a step id for the `child-number`th child of the step with id `parent-step-id`.
(direct-parent-of? parent child)
Returns true if the steps the given step-ids refer to are parent and immediate child.
Returns true if the steps the given step-ids refer to are parent and immediate child.
(later-than? a b)
Returns true if for two steps, the step with id a is executed after b in the pipeline.
Returns true if for two steps, the step with id a is executed after b in the pipeline.
(parent-of? parent child)
Returns true if the steps the given step-ids refer to are parent and child.
Returns true if the steps the given step-ids refer to are parent and child.
(root-step-id-of step-id)
Returns the id of the root-parent of the step with the given id.
Returns the id of the root-parent of the step with the given id.
(root-step-id? step-id)
Returns true if the step-id belongs to a root-step, i.e. a step with no parents.
Returns true if the step-id belongs to a root-step, i.e. a step with no parents.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close