DEV Community

Discussion on: Advent of Ruby 3.0 - Day 02 - Password Philosophy

Collapse
 
baweaver profile image
Brandon Weaver

Yep, you're correct that filter_map isn't technically needed here and filter would have worked. My original intent was for that to be different, but I left it to mention the function mostly.

TIL: Range#cover? - Will update later today to mention that.