Closed K9-guardian closed 2 years ago
Unfortunately, library(yall) has slightly different semantics depending on whether it is compiled or meta-called. That seems hard to fix according to its author. The advertised semantics is that of the compiled version and therefore one must always make sure that the libraries containing the used meta-predicates and library(yall) itself are explicitly loaded for getting the correct result (as well as for performance as meta-called yall is pretty slow).
Version: 8.2.4
OS: Windows 10
I made this toy program to show that
map
could be implemented withfoldl
by setting the output to be the empty list.This works fine, but when I try to do the same with a lambda, it does not work on the initial repl. This is my file
map.pl
.This is what I do from my terminal (powershell).
Note that this works after a successful
make/1
call. That is, when I do some edit to change the timestamp such as adding a space, and thenmake
ing, and running this test again, it works.The only change to
map.pl
was adding a space at the very end of the file.