Sfoglia il codice sorgente

Implement function ispal

DricomDragon 5 anni fa
parent
commit
d7a0019652
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      hpal.hs

+ 1 - 1
hpal.hs

@@ -1,6 +1,6 @@
 r _ = 1
 
-ispal n = True
+ispal n = r n == n
 
 hpal n = 
 	if ispal n