top of page
  • tendcitingcontrens

Powerset-ocaml

... definition in a language of your choice which, when called with a list, array, whatever, returns the power set of that list. It may be in any ... ocaml: 77 (117 bz2)​.




powerset-ocaml








Jun 19, 2014 — Here's a function to compute P(S) in OCaml. It's an instance of the 'divide and conquer' strategy of problem solving. let rec sets l = match l with .... OCaml — powerset(X, [H|T], Acc) -> powerset(X, T, [[X|H]|Acc]). F#[edit]. almost exact copy of OCaml version let subsets xs .... ... monad, it can be implemented in other languages (and has been, in OCaml ... ℘(S) is the powerset of S. The (classic) set-sharing domain Sharing is defined. 939c2ea5af


powerset ocaml, ocaml list powerset


0 views0 comments

Recent Posts

See All
bottom of page