Narcissist: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: Fix code and comment: Perl 6 --> Raku)
Line 476: Line 476:
<pre>$ ruby narcissist.rb < narcissist.rb
<pre>$ ruby narcissist.rb < narcissist.rb
accept</pre>
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}}==
=={{header|Scala}}==