Really, for those who are not used to it, it is difficult to understand. When I started working with tender conditions I thought "This is very strange!", but I forced myself to learn (even to leave the comfort zone) and now it has become very simple. It's a matter of habit, and believe me, it works perfectly!
I don't think this will evaluate correctly. Also, long one-liners can feel efficient but they're often pretty hard for others to understand.
Really, for those who are not used to it, it is difficult to understand. When I started working with tender conditions I thought "This is very strange!", but I forced myself to learn (even to leave the comfort zone) and now it has become very simple. It's a matter of habit, and believe me, it works perfectly!
What I'm saying is that your function literally doesn't work correctly.
That's incorrect.
Oh, sorry, you're right! I forget something.
Try again with my changes.
In this case, why do you even need the ternary?
true
will always evaluate totrue
.In other words, this:
is the exact same thing as this:
Perfect!!
I totally agree with you! 👏👏👏👏👏👏