Echo Writes Code

functions.orchid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import! orchid::console;
import! orchid::io;
import! orchid::string [String, self!];
import! orchid::utility [None];

main! {
	let! name = "Orchid";
	run! greet name;
}

proc! greet name : String -> (io::Result None) {
	run! console::write_line (greeting_for name);
}

func! greeting_for name : String -> String {
	ret! string::concatenate "Hello, " name;
}