flprepen


Name

flprepen -- prepend a string to a finite language

Synopsis

flprepen fl string

flprepen string <fl


Description

flprepen prepends string to every word in the finite language fl, and writes the resulting finite language on the standard output. fl must conform to the Grail format for finite languages.

Prepending a string to the empty language yields the empty language. Prepending the empty string to a language L yields L. Prepending a string S to the empty string yields S.


Examples

% cat fl
abc
bcd

dc

% flprepen fl xyz
xyzabc
xyzbcd
xyz
xyzdc

% flprepen fl ""
abc
bcd

dc


Authors

Roger Robson, Darrell Raymond and Derick Wood, the Grail project

See also

fl(5), flappend(1)