Try out this. ``` listOf(Some(1), Some(2), None, N...
# arrow
i
Try out this.
Copy code
listOf(Some(1), Some(2), None, None).fold(listOf())
  { acc: List<Int>, i: Option<Int> ->
    i.fold(ifEmpty = { acc }, ifSome = { acc.plus(it) })
  }
This is just Kotlin
­čöŁ 1