Backtracking with cut via a distributive law and left-zero monoids
AbstractWe employ the framework of algebraic effects to augment the list monad with the pruning cut operator known from Prolog. We give two descriptions of the resulting monad: as the monad of free left-zero monoids, and as a composition via a distributive law of the list monad and the ‘unary idempotent operation’ monad. The scope delimiter of cut arises as a handler.
1994 ◽
Vol 04
(04)
◽
pp. 499-528
◽
Keyword(s):
Keyword(s):
1988 ◽
Vol 31
(2)
◽
pp. 301-319
◽
Keyword(s):
1970 ◽
Vol 11
(4)
◽
pp. 417-420
2002 ◽
Vol 18
(4)
◽
pp. 261-262
◽
1992 ◽
Vol 91
(2)
◽
pp. 209-231
◽
2017 ◽
Vol 34
(2)
◽
pp. 335-341
Keyword(s):