Skip to content

Commit

Permalink
bistro: added constructor for static path lists
Browse files Browse the repository at this point in the history
  • Loading branch information
pveber committed Dec 18, 2018
1 parent 6ceec7b commit b1211eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bistro.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ module Workflow = struct
let spawn2 x y ~f =
zip x y
|> spawn ~f:(fun p -> f (fst p) (snd p))

let eval_paths xs = list (List.map xs ~f:eval_path)
end


Expand Down
3 changes: 3 additions & 0 deletions lib/bistro.mli
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ module Workflow : sig

val eval_path : 'a path workflow -> string workflow

val eval_paths :
'a path workflow list -> string list workflow

val list :
'a workflow list -> 'a list workflow

Expand Down

0 comments on commit b1211eb

Please sign in to comment.