Did you know ... Search Documentation:
Pack pac -- prolog/pac/expand-etc.pl
PublicShow source
 expand_etc(+Pac:pac, +M:atom, -G:pred, -P:list, -Q:list) is det
True if Pac is converted to a reference G to an expanded predicate in P (minus Q) at a module M. Currently the following macro expansion are supported.
phrase	---	hybrid regular expressions in DCG phrases
for	---	control predicate 'for'
foldr	---	foldr   ( 'foldl' is builtin in SWI-Prolog)
repeat	---	repeat
process --- repeat action until final. sed --- unix-like sed command based on the hybrid regualar expressions. flip --- generates a variant predicates with arguments flipping.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 etc(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6)