view 1-Ruby/truthiness-ruby.output @ 103:98be775c533c default tip

An odd "non-determinism" example from StackOverflow It is clever, but doesn't make much sense as to how it gets its results
author IBBoard <dev@ibboard.co.uk>
date Sun, 14 Jul 2019 13:44:13 +0100
parents e0a92558400f
children
line wrap: on
line source

Val 'true' is truthy
Val 'false' is falsy
Val '1' is truthy
Val '0' is truthy
Val '-1' is truthy
Val 'some string' is truthy
Val '' is truthy
Val nil is falsy