pasta: Make pasta with Strings

Description Usage Arguments Examples

Description

Pasta provides a set of easy to read infix function for the intuitive pasting of characters.
Currently the following functions are available for concatenation:

%_% pastes two strings by "_".

%-% pastes two strings by "-".

%.% pastes two strings by ".".

%//% pastes two strings by "/".

%&% pastes two strings by "".

%&&% pastes two strings by " ".

%|% pastes two strings with a "|".

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
a %_% b

a %-% b

a %.% b

a %//% b

a %&% b

a %&&% b

a %|% b

Arguments

a, b

characters.

Examples

1
2
3
4
5
6
7
8
'macaroni' %_% 'sauce' # 'macaroni_sauce'
'ravioli' %-% 'recipe' # 'ravioli-recipe'
'spaghetti' %.% 'code' # 'spaghetti.code'
'fusilli' %//% 'farfalle' # 'fusilli/farfalle'
'pasta' %&% 'sciutta' # 'pastasciutta'
'noodle' %&&% 'soup' # 'noodle soup'
'carbonara' %|% 'rag<c3><b9>' # 'carbonara|rag<c3><b9>'
'spaghetti' %&&% 'al' %-% 'dente' # 'spaghetti al-dente'

pasta documentation built on May 29, 2017, 10:51 p.m.