summaryrefslogtreecommitdiff
path: root/test/strjoin.myr
blob: 8b291e7ef5e3ae2598796f891a016e05ff39db86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std

const main = {
	const strings = [
	    "x",
	    "y",
	    "z",
	    "w"
	]
	std.put("{}\n", std.strcat("foo;", "bar"))
	std.put("{}\n", std.strjoin(strings[:], ""))
	std.put("{}\n", std.strjoin(strings[:], ":"))
}