Schal330@lemmy.world to Programmer Humor@programming.dev · 1 year agoIt must be a silent Rlemmy.worldimagemessage-square126linkfedilinkarrow-up1885arrow-down133
arrow-up1852arrow-down1imageIt must be a silent Rlemmy.worldSchal330@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square126linkfedilink
minus-squarecypherix93@lemmy.worldlinkfedilinkEnglisharrow-up11·1 year ago"strawberry".split('').filter(c => c === 'r').length
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up9·1 year agolen([c if c == ‘r’ for c in “strawberry”])
minus-squareTiefling IRL@lemmy.blahaj.zonelinkfedilinkarrow-up6·1 year ago'strawberry'.match(/r/ig).length
minus-squareanti-idpol action@programming.devlinkfedilinkarrow-up2·1 year ago(\r (frequencies “strawberry”))
minus-squareSluyter548@lemmy.worldlinkfedilinkarrow-up2·1 year agoA zero indexed array doesn’t have a different length ;)
"strawberry".split('').filter(c => c === 'r').lengthlen([c if c == ‘r’ for c in “strawberry”])
deleted by creator
'strawberry'.match(/r/ig).length(\r (frequencies “strawberry”))
deleted by creator
A zero indexed array doesn’t have a different length ;)