:wave: Hello! I've been using some functional prog...
# arrow
d
👋 Hello! I've been using some functional programming languages like erlang/elixir/Clojure and recently started working at a company that uses Kotlin on the backend. Most of the code already makes use of (custom) Option/Maybe/Either types but I'm looking to take things a step further and make the database interactions more functional, probably using Arrow, but I don't know where to start. I'm assuming I need something like IO/Reader but is there any tutorial/blogpost/video that goes over this using Arrow? Any suggestions?
c
For the basics I found that this is a great read: https://arrow-kt.io/docs/core/ Other than that, there was previously an
IO
type but it's being replaced to use
suspend
functions instead, since they're pretty much equivalent (semantically, apparently the performance difference is quite interesting).
r
@Dennis Tel for backend development all you need is pretty much here https://arrow-kt.io/docs/next/fx/ https://arrow-kt.io/docs/next/effects/io/ and the arrow core tutorials as @CLOVIS mentioned. Arrow 0.12 and 0.13 are getting released in the next few weeks.
Specifically related to Either in core you may want to take a look at the api docs and these tutorials https://arrow-kt.io/docs/next/patterns/error_handling/ and https://arrow-kt.io/docs/next/patterns/monad_comprehensions/
d
Thanks ya'll, will have a look!
👍 1