for all those users of :arrow: + IntelliJ, a new p...
# arrow
a
for all those users of arrow + IntelliJ, a new plug-in is here! https://arrow-kt.io/community/blog/2024/06/01/intellij-plugin/
👀 5
👏🏾 1
arrow intensifies 12
mind blown 1
👏 14
👏🏼 1
d
Does this play fine with Android Studio as well? 🙂 Yes it does 🤩
🎉 3
t
Hype!
a
Could you show a code sample where the plugin is supposed to suggest a missing
bind
or
bindAll
?
a
Copy code
fun positive(n: Int): Either<String, Int> = either {
  ensure(n >= 0) { "must be positive" }
  n
}

fun duplicate(n: Int): Int = n * 2

fun f(n: Int): Either<String, Int> = either {
  duplicate(positive(n)) // <- here, in the argument
}
gratitude thank you 1
a
thanks for the clarification
l
Just installed. We’ll see how it goes. 🙂 The description that shows up in the plugin marketplace could stand some improvements…