Explorar o código

Define warm cities

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
82b3567aa5
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      tp/1/warm_city.lp

+ 8 - 0
tp/1/warm_city.lp

@@ -0,0 +1,8 @@
+% Generate
+t(rennes,4). t(nantes,5). t(marseille,8). t(paris,2).
+
+% Test
+warm(V) :- t(V, T), T > 4.
+
+% Display
+#show warm/1.