phil_algs / Languages /docs6-2.txt
luciangreen's picture
Upload 1424 files
557a17a verified
* (3) `[[n,call],[[lang,Lang],Debug,[Function,Arguments],Types,Modes,Functions]]` e.g. `[[n,call],[[lang,same],same,[[n,member2a],[[v,b],["a","b","c"]]], [[[n,member2a],[[t, number], [[t, number], [t, number], [t, number]]]]],
[[[n,member2a],[output,input]]],
[[[n,member2a],[[v,b],[v,a]],":-",
[ [[n,member],[[v,b],[v,a]]]]
]]]]` returns `[v,b]="a"`. (See call(2) above for possible values of Lang and Debug.)
* `[[n,trace]]` switches on trace (debug) mode.
* `[[n,notrace]]` switches off trace (debug) mode.
* `[[n,get_lang_word],[Variable1,Variable2]` e.g. `[[n,get_lang_word],["get_lang_word",[v,word]]]` returns `[v,word]="get_lang_word"`.
* `[[n,member3],[Variable1,Variable2]` e.g. `[[n,member3],[[[v,a],"|",[[v,b]]],[[1,1],[1,2],[1,3]]]]` returns `[v,a]=1`, `[v,b]=1`, etc. where Variable1 may be in any pattern.
* `[[n,equals4_on]]` switches on equals4 mode (in check arguments, substitute vars and update vars but not in the equals4 command itself), for e.g. list processing in arguments.
* `[[n,equals4_off]]` switches off equals4 mode, for debugging.