Handbook
Glossary
factorcode.org
prepend-path ( path1 path2 -- path )
Factor handbook
»
Input and output
»
Pathnames
Prev:
path-components ( path -- seq )
Next:
append-path ( path1 path2 -- path )
Vocabulary
io.pathnames
Inputs
path1
a pathname string
path2
a pathname string
Outputs
path
a pathname string
Word description
Prepends
path2
and
path1
to form a pathname.
Examples
USING: io.pathnames prettyprint ; "second.txt" "first" prepend-path .
"first/second.txt"
See also
append-path
Definition
USING:
kernel
;
IN:
io.pathnames
:
prepend-path
( path1 path2 -- path )
swap
append-path
;
inline