I prefer Haskell, but my day job lets me do Kotlin, so I meet it halfway.
Also... as I did this, I realized that I prefer foldl most of the time because I started in Clojure with reduce which does the auto-lazy non-recursive left fold. (I think this is the equivalent of foldl' or 'strict left fold' in Haskell)
Can someone do the arrow-kt version so I can jumpstart my learnings and freak out the squares?
I feel like I'm missing some idioms here on how to use arrow-kt properly. What we have here is myElem implemented so that any type that has a matching Foldable TypeClass can use this function. Maybe I need less toy examples?
I really don't like having to pass in utility objects just to tell it what kind of Monoid/Foldable I am. It's really showing off how strong Haskell's type system is.
Negatory, I'm a middle-to-backend developer. Currently, I'm using Kotlin to make developing with gremlin palatable while still having static typing. I'd use the python library, but Kotlin just feels more elegant to me.
If you prefer Haskell than Eta lang could be the answer. Eta is Haskell on JVM.
I'm just curious what it would be like for you to try it out. Just your first impressions.
It may not work at all.
I'd try it myself but currently my beginning brain can't really learn one more thing (leaning Elm, Haskell, Elixir, html, css, postgres at the same time).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The (non arrow-kt) Kotlin version of some of these:
I prefer Haskell, but my day job lets me do Kotlin, so I meet it halfway.
Also... as I did this, I realized that I prefer
foldl
most of the time because I started in Clojure withreduce
which does the auto-lazy non-recursive left fold. (I think this is the equivalent offoldl'
or 'strict left fold' in Haskell)Can someone do the arrow-kt version so I can jumpstart my learnings and freak out the squares?
Thanks for posting these! I'd really like to learn Kotlin.
ok, I did the arrow-kt, and at this point it feels like I should just use Haskell.
I feel like I'm missing some idioms here on how to use arrow-kt properly. What we have here is
myElem
implemented so that any type that has a matchingFoldable
TypeClass can use this function. Maybe I need less toy examples?I really don't like having to pass in utility objects just to tell it what kind of Monoid/Foldable I am. It's really showing off how strong Haskell's type system is.
Have you tried Eta lang on android?
Negatory, I'm a middle-to-backend developer. Currently, I'm using Kotlin to make developing with gremlin palatable while still having static typing. I'd use the python library, but Kotlin just feels more elegant to me.
If you prefer Haskell than Eta lang could be the answer. Eta is Haskell on JVM.
I'm just curious what it would be like for you to try it out. Just your first impressions.
It may not work at all.
I'd try it myself but currently my beginning brain can't really learn one more thing (leaning Elm, Haskell, Elixir, html, css, postgres at the same time).