The Prolog Cabin

A place to learn and discuss about Prolog.
1045d ago – Steffan
22

export all events for this room

Starred posts

Sep 2, 2022 05:06
don't think about returning true or false; think about succeeding or failing
5
Sep 3, 2022 05:45
also someone say something funny so all the stars won't be from years ago, please
2
Mar 24, 2021 18:00
this was helpful for me (learning cuts)
3
Mar 6, 2018 08:40
Apr 9, 2021 02:40
(not sponsored, or in anyway benefited, by cats)
2
Feb 28, 2021 16:30
"P-99: Ninety-Nine Prolog Problems" ic.unicamp.br/~meidanis/courses/mc336/2009s2/prolog/problemas, problems to practice your prolog, i believe these are based off of the 99 lisp problems
2
Feb 26, 2021 18:14
also someone say something funny so all the stars won't be from years ago, please
2
Mar 9, 2021 15:05
swi-prolog discourse swi-prolog.discourse.group
Mar 6, 2018 08:42
Mar 7, 2018 15:39
> Write a predicate `f/2` (i.e. a predicate with name `f` and 2 arguments) which states that its second argument is the factorial of its first argument.

To do integer operations, add `:- use_module(library(clpfd)).` at the beginning of your code base. Some operations you might need are (with dummy variables): `A #> B`, `A #= B * C`, `A #= B - C`.