▲ 843 ▼ It must be a silent R (lemmy.world) submitted 2 years ago by Schal330@lemmy.world to c/programmer_humor@programming.dev 123 comments fedilink hide all child comments
[–] cypherix93@lemmy.world 11 points 2 years ago (4 children) "strawberry".split('').filter(c => c === 'r').length permalink fedilink source hideshow 8 child comments replies: [–] SpaceNoodle@lemmy.world 9 points 2 years ago (1 child) len([c if c == 'r' for c in "strawberry"]) permalink fedilink source parent hideshow 2 child comments replies: [+] MrLLM@ani.social 0 points 2 years ago [deleted] permalink fedilink source parent [–] tiefling@lemmy.blahaj.zone 6 points 2 years ago 'strawberry'.match(/r/ig).length permalink fedilink source parent [–] pkill@programming.dev 2 points 2 years ago (\r (frequencies "strawberry")) permalink fedilink source parent [+] Anticorp@lemmy.world -1 points 2 years ago (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] Sluyter548@lemmy.world 2 points 2 years ago A zero indexed array doesn't have a different length ;) permalink fedilink source parent
[–] SpaceNoodle@lemmy.world 9 points 2 years ago (1 child) len([c if c == 'r' for c in "strawberry"]) permalink fedilink source parent hideshow 2 child comments replies: [+] MrLLM@ani.social 0 points 2 years ago [deleted] permalink fedilink source parent
[–] tiefling@lemmy.blahaj.zone 6 points 2 years ago 'strawberry'.match(/r/ig).length permalink fedilink source parent
[–] pkill@programming.dev 2 points 2 years ago (\r (frequencies "strawberry")) permalink fedilink source parent
[+] Anticorp@lemmy.world -1 points 2 years ago (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] Sluyter548@lemmy.world 2 points 2 years ago A zero indexed array doesn't have a different length ;) permalink fedilink source parent
[–] Sluyter548@lemmy.world 2 points 2 years ago A zero indexed array doesn't have a different length ;) permalink fedilink source parent