Ad
Strings
Code
Diff
  • const last_char:&dyn Fn(&str)->Option<char>=&|s|s.chars().last();
    • fn last_char(string: &str) -> Option<char> {
    • string.chars().last()
    • }
    • const last_char:&dyn Fn(&str)->Option<char>=&|s|s.chars().last();
Code
Diff
  • poopFarter=lambda p:"💩"if p else"💨"
        
    • def poopFarter(p):
    • return "💩" if p else "💨"
    • poopFarter=lambda p:"💩"if p else"💨"