jn't ⏣ is a user on cybre.space. You can follow them or interact with them if you have an account anywhere in the fediverse.
jn't ⏣ @nonphatic

Is there a nicer way of casting a truthy value to true in other than just using an (if value )?

· Web · 0 · 0

Aha I can use `not`! I actually need truthy -> false and false -> true so it's perfect

@nonphatic btw in the future (and value ) works for this, if you actually want the same value. i don't think there's a better way than that :thinknyan:

@nonphatic ah misread the original question. (and val) should also work. Unless you explicitly require the result to be the symbol #t...

@nonphatic beaware that value is alwaus #t anyway unless it is #f. #f is the only false value in scheme