Jump to content

Narcissist: Difference between revisions

m (→‎{{header|Raku}}: Fix code and comment: Perl 6 --> Raku)
Line 476:
<pre>$ ruby narcissist.rb < narcissist.rb
accept</pre>
 
=={{header|Rust}}==
<lang rust>use std::io::{stdin, prelude::*};
fn main() {
let src = include_str!("main.rs");
let mut input = String::new();
stdin()
.lock()
.read_to_string(&mut input)
.expect("Could not read from STDIN");
println!("{}", src == input);
}</lang>
 
=={{header|Scala}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.