Eeeee EE #351 eeee iosmanthus/eeeeeeeeeeeeeeeeeeeeeeee

Add another implementation to e.rs
This commit is contained in:
iliana weller 2018-12-10 08:28:18 -08:00 committed by GitHub
commit b10e92ba16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
e.rs
View File

@ -1,6 +1,13 @@
#![feature(main)]
#[cfg(feature = "functional")]
#[main]
fn e() {
std::iter::repeat('e').for_each(|e| print!("{}", e));
}
#[cfg(not(feature = "functional"))]
#[main]
fn e() -> ! {
loop {
print!("e");
}