Re:Why did Prolog lose steam? (2010)
by falsissime on Thursday April 20, 2023 @12:10PM
(#35642219)
There is a minor impurity in this code: `N = 1+1, rle([a,a],[[a,N]]).` succeeds, yet `rle([a,a],[[a,N]]), N = 1+1` fails. Add `:- op(150, fx, #).` and use it like `#CountPlus1 #= #Count+1` etc.
[ Parent
| on HN ]
There are no comments on this comment yet.