generates unnecessary codes as below, and they are removed manually when committing.
could you help this problems?
Copy code
import arrow.core.*
fun test() {
val original: List<String> = listOf("Hello", ",", "World")
val result: Iterable<CharSequence> = original.widen()
}
import arrow.core.*
fun main() {
val original: List<String> = listOf("Hello", ",", "World")
val result: Iterable<CharSequence> = original.widen()
}
y
Youssef Shoaib [MOD]
03/28/2023, 12:21 AM
Not sure about the knit issue, but for you implementation, would it not be more efficient to use 2 `MutableList`s and iterate and add to each, and then, and only then, make a pair and return it?
Youssef Shoaib [MOD]
03/28/2023, 12:49 AM
Figured out the knit issue. You need to move your function so that it is above the two
widen
functions. That's because knit merges together code blocks that don't belong to a file yet. You could also have the widen functions have their own knit files. I can make a pr with that if you want
Youssef Shoaib [MOD]
03/28/2023, 2:01 AM
I've made a pull request on your repo with the fix for the knit issue and a more-efficient implementation for