A new funKTionale version https://github.com/MarioAriasC/funKTionale
In this release
- M7 compatible
- Currying for Function11 to Function22 (Thanks some performance enhancements on Kotlin M7 compiler)
- Some tweaks on Option type including a new Extension function for Map<K,V> (Kudos to Ken Braclay for the inspiration)
[Test] fun getAsOption() {
val map = mapOf(1 to "uno", 2 to "dos")
assertEquals(map.getAsOption(1), Some("uno"))
ssertEquals(map.getAsOption(3), None<String>())
}
Enjoy