Last active
September 22, 2022 20:18
-
-
Save Risto-Stevcev/c4644c502ac424f22a74510456ea05b6 to your computer and use it in GitHub Desktop.
Some notes on manipulating terms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?- TermStart = (X = 123), with_output_to(string(S), write_term(TermStart, [variable_names(['X'=X])])), | |
concat(S, ".", S2), open_string(S2, Stream), read_term(Stream, TermEnd, [variable_names(['X'=X])]). | |
TermStart = TermEnd, TermEnd = (X=123), | |
S = "X=123", | |
S2 = 'X=123.', | |
Stream = <stream>(0x55858662ae00). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment