This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!raku | |
for (1..100) { | |
given $_ { | |
when not $_ % 15 { 'roflmao'.say } | |
when not $_ % 5 { 'lmao' .say } | |
when not $_ % 3 { 'lol' .say } | |
default { .say } | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AAA | |
AAB | |
AAC | |
AAD | |
AAE | |
AAF | |
AAG | |
AAH | |
AAI | |
AAJ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 | |
98 | |
2003 | |
2008 | |
111111 | |
123456 | |
12345678 | |
1qaz2wsx | |
abc | |
abc123 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_export] | |
macro_rules! boxit { | |
($value:expr) => { | |
Box::new($value) | |
}; | |
} | |
// Example usage: | |
#[cfg(test)] | |
mod tests { |