From e654123a39e5bba01a1e35bc33822c7c190a3358 Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Sun, 31 May 2020 23:42:16 +0200 Subject: [PATCH] example: Illustrate tabulate*/boolean. --- example/example.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/example/example.org b/example/example.org index b0890be..9e27e14 100644 --- a/example/example.org +++ b/example/example.org @@ -525,6 +525,20 @@ tab | #t | #t | #t | :END: + You can tabulate multiple functions taking the same arguments over + the same domains together. + #+BEGIN_SRC racket :results table drawer +(tabulate*/boolean `(,(λ (x y) (and x y)) ,(λ (x y) (or x y)))) + #+END_SRC + + #+RESULTS: + :RESULTS: + | #f | #f | #f | #f | + | #f | #t | #f | #t | + | #t | #f | #f | #t | + | #t | #t | #t | #t | + :END: + Here's how to tabulate the network =simple-bn=, defined at the top of this section: #+BEGIN_SRC racket :results table drawer :var in-bn=munch-sexp(simple-bn)