toCollection

Appends this Optional's value to the given destination collection if present.

Since Kotlin

1.7