soy-cheat-sheet
soy-cheat-sheet copied to clipboard
Improve elvis and ternary operator descriptions
- Fix the ternary example with
isNonnull
so that it is easily comparable with the elvis operator - Switch the ternary and null-coalescing operator, so that reading the first (
a?b:c
) makes it clear what the last does (a?:c
) - Add link to the docs for the elvis operator too