Description: Also known as Tinix , Degree in Computer Science FaMAF,Writer Software, Ruby, Elixir, Rust, Go, Linux and FreeBSD, I like have Mate, 4 lang, but all that means almost nothing..
About Ruby Debugging Select Blocks 2023-02-06 21:23:05 +0000
Debugging select is easy because the only thing you need to know is whether the predicate was true for a particular element. For example, a select filter that only keeps even numbers (number % 2== 0) could be debugged like this:
Here, you can see that only the numbers for which the predicate was true ended up in the answer ([2,4]).