Support do-block syntax
rofinn opened this issue · 2 comments
rofinn commented
If the node constructors took a Function
as the first argument then nodes could be written like:
theta = Stochastic(1, true) do alpha, beta
Gamma(alpha, 1 / beta)
end
brian-j-smith commented
Done. Changes to accept functions as the first arguments of the Logical and Stochastic constructors are now in the master branch and will be in the next package release.
rofinn commented
Great, thank you!