From a probability form as a list create text
Examples
make_prob_names(list(out = c("Y", "X"), cond = "Z"),
values = expand.grid(Y = 0:1, X = 0:1, Z = 0:1), letter = "Pr")
#> [1] "Pr(Y = 0, X = 0 | Z = 0)" "Pr(Y = 1, X = 0 | Z = 0)"
#> [3] "Pr(Y = 0, X = 1 | Z = 0)" "Pr(Y = 1, X = 1 | Z = 0)"
#> [5] "Pr(Y = 0, X = 0 | Z = 1)" "Pr(Y = 1, X = 0 | Z = 1)"
#> [7] "Pr(Y = 0, X = 1 | Z = 1)" "Pr(Y = 1, X = 1 | Z = 1)"