Example of nullOr("string") that is returning "string" looks weird in Collections/Arrays section. My first impression was that it should be in the section about strings.
I suggest to
1) add example for nullOr("string") to the section about strings (for completeness)
2) remove this example from the Collections/Arrays section
3) introduce a dedicated section for nullOr() with different examples (to demonstrate that it uses generics and may accepts any types, not only strings)
Removed completely these examples in Strings and moved it all together into a new section. BTW, nullOr() doesn't necessarily work with Strings (added example for this too).
Example of
nullOr("string")
that is returning"string"
looks weird in Collections/Arrays section. My first impression was that it should be in the section about strings.I suggest to 1) add example for
nullOr("string")
to the section about strings (for completeness) 2) remove this example from the Collections/Arrays section 3) introduce a dedicated section fornullOr()
with different examples (to demonstrate that it uses generics and may accepts any types, not only strings)