Good to know the possibility to use Kernel-level functions '*', '<', etc. with the pipe operator...
But it decreases the readability of the code very much (personal opinion).
You could just use pattern matching and define 2 methods to drop the conditional if checking the a < 0.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good to know the possibility to use Kernel-level functions '*', '<', etc. with the pipe operator...
But it decreases the readability of the code very much (personal opinion).
You could just use pattern matching and define 2 methods to drop the conditional if checking the a < 0.