Top-rated recipes tagged "declarative"http://code.activestate.com/recipes/tags/declarative/top/2010-08-23T22:41:53-07:00ActiveState Code RecipesMcCarthy's amb operator in Python (Python)
2010-08-23T22:41:53-07:00Paddy McCarthyhttp://code.activestate.com/recipes/users/398009/http://code.activestate.com/recipes/577368-mccarthys-amb-operator-in-python/
<p style="color: grey">
Python
recipe 577368
by <a href="/recipes/users/398009/">Paddy McCarthy</a>
(<a href="/recipes/tags/declarative/">declarative</a>, <a href="/recipes/tags/style/">style</a>).
</p>
<p>From reading about amb it seems that it allows for a declaritive style of programming where the one amb "operator" can
* Set the ranges of variables
* Set a constraint function
* And iterate over all solutions </p>
<p>(See <a href="http://paddy3118.blogspot.com/2010/08/mccarthys-amb-operator-in-python.html" rel="nofollow">http://paddy3118.blogspot.com/2010/08/mccarthys-amb-operator-in-python.html</a> for a more descriptive intro).</p>