<@U028BLB5LG3> there are some small errors in the ...
# arrow-contributors
l
@Alejandro Serrano Mena there are some small errors in the code examples in https://www.47deg.com/blog/arrow-analysis-kotlin-compiler-plugin/ • In the examples with the extension functions on
List<Int>
the dot is missing between the receiver type and the function name • In the second extension function,
fun List<Int>.firstOrZero()
using
isNotEmpty()
the logic is the other way around (should be
if (this.isNotEmpty()) this.first() else 0
)
a
thanks for catching this 👍
l
👍
a
solved!
l
Looks good, but now the description of the function using
isEmpty()
has to be adjusted as well (2 lines above it still mentions
isNotEmpty()
) 😉
Also the text below has to be adjusted: