Listen to the truthmachine!
Scream your falsehoods.
This commit is contained in:
parent
4bc088f277
commit
2fc847fff2
8
sample-code/truthmachine.cl
Normal file
8
sample-code/truthmachine.cl
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
//! Implements a Truth Machine
|
||||||
|
|
||||||
|
fn main (n)
|
||||||
|
match n {
|
||||||
|
1 => loop print(1),
|
||||||
|
n => println(n),
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user