Skip to main content
Took ceilingcat's suggestion. Thanks!
Source Link
swpalmer
  • 201
  • 1
  • 3

Java (JDK), 7171, 70 bytes

(b,B)->{B="_";for(b=47;b++<122;)if(b<58|b>64&&b<91|b>96)B+=b;returnB+=b>57&b<65|b>90&b<97?"":b;return B;}

Try it online!Try it online!

Inspired by an answer from dorukayhan this is a java.util.function.BiFunction<Character, String, String>

Java (JDK), 71 bytes

(b,B)->{B="_";for(b=47;b++<122;)if(b<58|b>64&&b<91|b>96)B+=b;return B;}

Try it online!

Inspired by an answer from dorukayhan this is a java.util.function.BiFunction<Character, String, String>

Java (JDK), 71, 70 bytes

(b,B)->{B="_";for(b=47;b++<122;)B+=b>57&b<65|b>90&b<97?"":b;return B;}

Try it online!

Inspired by an answer from dorukayhan this is a java.util.function.BiFunction<Character, String, String>

Source Link
swpalmer
  • 201
  • 1
  • 3

Java (JDK), 71 bytes

(b,B)->{B="_";for(b=47;b++<122;)if(b<58|b>64&&b<91|b>96)B+=b;return B;}

Try it online!

Inspired by an answer from dorukayhan this is a java.util.function.BiFunction<Character, String, String>