previous up contents next
Left: Sed Up: Standard library function functions Right: Not

Hyphenate

Hyphenate inserts the first element in the path in between each subsequent pairing of path elements. If the path contains fewer than three elements, then Hyphenate fails.

    Hyphenate:
        <> == Fail:<'Hyphenate'>
        <$x $y $z> == Hyphen.
    
    Hyphen:
        <$x $z> == $z
        <$x $y $z> == $y $x <$x $z>.
    
    Hyphenate:<_ a b c> = a _ b _ c.
    Hyphenate:</ local users john bin> == local / users / john / bin.

Hyphenate is primarily intended as a convenient utility for use with Implode (see section 11.4.1, below).


---------------------------------------------------------

Copyright © Roger Evans, Gerald Gazdar & Bill Keller, Tuesday 10 November 1998