package acgtk

  1. Overview
  2. Docs
Abstract Categorial Grammar development toolkit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

acg-2.2.0-20251107.tar.gz
sha512=07f391d052090bb70c10ec511fdc53af764954cbe1c30093778984c5ed41a4327573fdac0890c6fd619ff9827725572eb7b8a7545bd8ccb7f5bddb84d2d7f7cc

doc/acgtk.datalogLib/DatalogLib/ArrayTraversal/Make/index.html

Module ArrayTraversal.MakeSource

Parameters

module E : Evaluator_TYPE

Signature

Sourcetype row = E.cell list

The type of a row

Sourcetype array = row list

The type of the array

Sourceval collect_results : ('a -> E.state -> 'a) -> 'a -> E.state -> array -> 'a

collect_results f acc init a returns f (... (f (f (f acc s1) s2) s3)... ) sN where s1 ... aN are the states when reaching the end of the paths from top to bottom of a such that for all s resulting from the path c1 ; ... ; cK (all paths have this shape) s = E.update (... E.update (E.update (E.update init c1) c2) ...) cK and none of this E.update calls returned a None value (hence the notation abuse of applying E.update to a state instead of a state option in this description).