Understitch

Make underscore concatenate strings with a space or a custom string in-between

understitch

Tiny Raku module for concatenating strings with a space (or an arbitrary connector string) via _

use Understitch;

"abc" _ "def"  # «abc def»

use Understitch ' & ';
"abc" _ "def"  # «abc & def»
[_] 1..5       # «1 & 2 & 3 & 4 & 5»

Testing

Test with

RAKUDO_RAKUAST=1 prove -e 'raku -I.'

That's because, without RakuAST the operator's associativity (left) is lost during export (Rakudo v2026.02).

Understitch v0.0.2

Make underscore concatenate strings with a space or a custom string in-between

Authors

  • David Simon Schultz

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Understitch

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.