package catala

  1. Overview
  2. Docs
Compiler and library for the literate programming language for tax code specification

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.3.0.tar.gz
md5=59d0dd01df52c38a4d793b594f067d14
sha512=944b755f8b47cb14920994f03f022cc3ba6cdf5def1ae8ffda00a196fa97dcc5b57baf642a03068b79e949df2a98d5f0218e3358e549be1ff0f1cddda1e5f848

doc/catala.runtime_ocaml/Catala_runtime/Oper/index.html

Module Catala_runtime.OperSource

Sourceval o_not : bool -> bool
Sourceval o_length : 'a array -> integer
Sourceval o_toint_rat : decimal -> integer
Sourceval o_toint_mon : money -> integer
Sourceval o_torat_int : integer -> decimal
Sourceval o_torat_mon : money -> decimal
Sourceval o_tomoney_rat : decimal -> money
Sourceval o_tomoney_int : integer -> money
Sourceval o_getDay : date -> integer
Sourceval o_getMonth : date -> integer
Sourceval o_getYear : date -> integer
Sourceval o_firstDayOfMonth : date -> date
Sourceval o_lastDayOfMonth : date -> date
Sourceval o_round_mon : money -> money
Sourceval o_round_rat : decimal -> decimal
Sourceval o_minus_int : integer -> integer
Sourceval o_minus_rat : decimal -> decimal
Sourceval o_minus_mon : money -> money
Sourceval o_minus_dur : duration -> duration
Sourceval o_and : bool -> bool -> bool
Sourceval o_or : bool -> bool -> bool
Sourceval o_xor : bool -> bool -> bool
Sourceval o_eq : 'a Value.ty -> code_location -> 'a -> 'a -> bool
Sourceval o_lt : 'a Value.ty -> code_location -> 'a -> 'a -> bool
Sourceval o_lte : 'a Value.ty -> code_location -> 'a -> 'a -> bool
Sourceval o_gt : 'a Value.ty -> code_location -> 'a -> 'a -> bool
Sourceval o_gte : 'a Value.ty -> code_location -> 'a -> 'a -> bool
Sourceval o_map : ('a -> 'b) -> 'a array -> 'b array
Sourceval o_map2 : code_location -> ('a -> 'b -> 'c) -> 'a array -> 'b array -> 'c array
  • raises Runtime.NotSameLength
Sourceval o_reduce : ('a -> 'a -> 'a) -> 'a array -> 'a Optional.t
Sourceval o_concat : 'a array -> 'a array -> 'a array
Sourceval o_filter : ('a -> bool) -> 'a array -> 'a array
Sourceval o_add_int_int : integer -> integer -> integer
Sourceval o_add_rat_rat : decimal -> decimal -> decimal
Sourceval o_add_mon_mon : money -> money -> money
Sourceval o_add_dat_dur : date_rounding -> code_location -> date -> duration -> date
Sourceval o_add_dur_dur : duration -> duration -> duration
Sourceval o_sub_int_int : integer -> integer -> integer
Sourceval o_sub_rat_rat : decimal -> decimal -> decimal
Sourceval o_sub_mon_mon : money -> money -> money
Sourceval o_sub_dat_dat : date -> date -> duration
Sourceval o_sub_dat_dur : date_rounding -> code_location -> date -> duration -> date
Sourceval o_sub_dur_dur : duration -> duration -> duration
Sourceval o_mult_int_int : integer -> integer -> integer
Sourceval o_mult_rat_rat : decimal -> decimal -> decimal
Sourceval o_mult_mon_int : money -> integer -> money
Sourceval o_mult_mon_rat : money -> decimal -> money
Sourceval o_mult_dur_int : duration -> integer -> duration
Sourceval o_div_int_int : code_location -> integer -> integer -> decimal
Sourceval o_div_rat_rat : code_location -> decimal -> decimal -> decimal
Sourceval o_div_mon_mon : code_location -> money -> money -> decimal
Sourceval o_div_mon_int : code_location -> money -> integer -> money
Sourceval o_div_mon_rat : code_location -> money -> decimal -> money
Sourceval o_div_dur_dur : code_location -> duration -> duration -> decimal
Sourceval o_fold : ('a -> 'b -> 'a) -> 'a -> 'b array -> 'a
Sourceval o_find : ('a -> bool) -> 'a array -> 'a Optional.t
Sourceval o_sort_asc : 'b Value.ty -> code_location -> ('a -> 'b) -> 'a array -> 'a array
Sourceval o_sort_desc : 'b Value.ty -> code_location -> ('a -> 'b) -> 'a array -> 'a array
Sourceval o_toclosureenv : 'a -> Obj.t
Sourceval o_fromclosureenv : Obj.t -> 'a