package bistro
A library to build and run distributed scientific workflows
Install
Dune Dependency
Authors
Maintainers
Sources
bistro-0.6.0.tbz
sha256=146177faaaa9117a8e2bf0fd60cb658662c0aa992f35beb246e6fd0766050e66
sha512=553fe0c20f236316449b077a47e6e12626d193ba1916e9da233e5526dd39090e8677277e1c79baace3bdc940cb009f25431730a8efc00ae4ed9cc42a0add9609
doc/src/bistro.internals/template.ml.html
Source file template.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
open Base type 'a token = | S of string | D of 'a | F of 'a token list | DEST | TMP | NP | MEM type 'a t = 'a token list let rec deps tmpl ~compare = List.map tmpl ~f:(function | D r -> [ r ] | F toks -> deps ~compare toks | S _ | DEST | TMP | NP | MEM -> [] ) |> List.concat |> List.dedup_and_sort ~compare let rec map_token x ~f = match x with | S s -> S s | D dep -> D (f dep) | F toks -> F (List.map toks ~f:(map_token ~f)) | DEST -> DEST | TMP -> TMP | NP -> NP | MEM -> MEM let map toks ~f = List.map toks ~f:(map_token ~f)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>