https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
arrow
  • r

    raulraja

    08/22/2018, 11:51 AM
    https://twitter.com/47deg/status/1031955061763526656
    ❤️ 2
    d
    • 2
    • 1
  • g

    gabib

    08/31/2018, 5:32 PM
    Hello all! I'm not sure if this question has been asked before, but I am really interested in your opinion on how logging should be performed in a purely functional way. Thank you!
    😱 2
    k
    p
    • 3
    • 2
  • j

    jacob

    09/06/2018, 10:45 AM
    it's not in Kotlin, but I found haskellbook.com very useful
    g
    • 2
    • 1
  • p

    pakoito

    09/11/2018, 12:19 AM
    I’m quite sure the inference will be happy with that
    s
    • 2
    • 3
  • t

    themishkun

    09/11/2018, 10:19 PM
    Hello guys, I'm trying to build intuition on finding fp patterns in real life applications, so can you correct me if I worng? Can I look at JSON as a functor? It seems to me that fmap can be written something like that:
    deserialize().let(::f).serialize()
    . But is it applicative? Or I am following the wrong direction and there are more suitable abstractions to reason about JSON? Also Parcelable from Android and JSON both are looking pretty similar to me. Are there any chances to prove this similarity in fp terms?
    r
    r
    • 3
    • 2
  • r

    raulraja

    10/01/2018, 9:59 AM
    For those of you attending Kotlin Conf and interested in FP and Arrow https://twitter.com/raulraja/status/1046700333630722050
    👍 12
    n
    s
    +2
    • 5
    • 7
  • t

    tomasruizlopez

    10/04/2018, 8:23 AM
    @simon.vergauwen I think that could be possible
    s
    • 2
    • 2
  • j

    jacob

    10/04/2018, 8:32 AM
    when you say a separate idea instance, I should copy and paste the idea folder and choose a different directory for the config?
    s
    • 2
    • 1
  • s

    simon.vergauwen

    10/04/2018, 9:20 AM
    I'm running
    assemble
    in hope I'll end up with correct jar. Not sure how long that'll take. runIde took 17 hours on my machine.
    d
    • 2
    • 2
  • r

    raulraja

    10/07/2018, 6:11 PM
    @rameez this is a tutorial that people frequently use to get started and exposes you to exception free code with
    Option
    ,
    Try
    ,
    Either
    ,
    ApplicativeError
    and
    MonadError
    https://arrow-kt.io/docs/patterns/error_handling/
    r
    • 2
    • 1
  • p

    pakoito

    10/07/2018, 8:32 PM
    https://github.com/Mojang/DataFixerUpper/tree/master/src/main/java/com/mojang/datafixers
    t
    • 2
    • 2
  • p

    pakoito

    10/08/2018, 7:04 PM
    now, take a look at this article and see what’s the next step: https://arrow-kt.io/docs/patterns/glossary/#type-constructors
    a
    • 2
    • 2
  • s

    simon.vergauwen

    10/13/2018, 9:45 AM
    However KotlinTest also has some Arrow specific matchers https://github.com/kotlintest/kotlintest/blob/master/doc/reference.md#arrow
    s
    r
    • 3
    • 8
  • p

    pakoito

    10/13/2018, 12:35 PM
    Untitled.js
    s
    • 2
    • 1
  • k

    keturn

    10/17/2018, 2:24 AM
    Okay, I watched the talk! I'm glad you started with Optics, as that's the part that interests me most right now. And "Put
    @optics
    on your data classes and then you get methods you can use to copy and modify" is a much more approachable message to me than some introductions to Arrow I've seen.
    👍 1
    r
    • 2
    • 1
  • f

    fred.deschenes

    10/17/2018, 3:34 PM
    outsider to FP here : most of the issues I have with FP documentation is that it uses words I don't know to explain other words I don't know, leaving me with 75 open tabs and still no idea what I'm reading (seriously, imagine reading this https://wiki.haskell.org/Monad without an advanced mathematical/FP understanding, it still gives me a headache). Just having a "it's like other common programming thing but with *differences*" section would really help newcomers.
    p
    • 2
    • 2
  • d

    Dias

    10/17/2018, 4:01 PM
    It just explains interface but not the purpose
    p
    r
    • 3
    • 11
  • s

    Slackbot

    10/17/2018, 8:29 PM
    This message was deleted.
    p
    • 2
    • 1
  • a

    acando86

    10/18/2018, 8:48 AM
    my two cents on the above discussion about naming conventions, also because I'm currently helping to percolate FP concepts to people coming from more imperative background (eg, some android developers more familiar with traditional java style/OOP). Although i can partially agree that names like Monad, Applicative etc might sound scary for those who come from a different background, i also think that choosing unconventional names like chanable or container is just a palliative to increase the appeal but at the same time it is extremely misleading. IMO we should focus (as programmers in general) to focus more on the concepts behind and try to understand if/when/how/WHY such abstractions and their properties can be helpful when writing code. Although chainability and containers refer to some behaviour we can qualitatively observe when using these concepts, I don't think this captures the essence of these concepts and the power of these abstractions. Although composability is at the heart of lot of concepts borrowed from category theory, terms like Containers or dotchains are quite generic, not precisely defined, they refer more to the way we expect to use things rather than their fundating properties, they shift our focus on a particular aspect of those things instead of driving us to an appreciation of how to reason in terms of these abstractions. It's actually a nice exercise to compare how either the monadic or applicative properties actually constrains us , what they allow us to do and achieve and what not.
    ➕ 1
    👌 5
    r
    t
    • 3
    • 3
  • b

    Bernhard

    10/21/2018, 2:53 PM
    @Mike why not use Left(....) and Right(...) instead?
    m
    r
    s
    • 4
    • 8
  • p

    pakoito

    10/23/2018, 2:30 PM
    -.js
    👌 2
    r
    • 2
    • 1
  • j

    jacob

    10/24/2018, 5:15 AM
    so maybe we just need to write one?
    v
    • 2
    • 1
  • g

    girafferson

    10/25/2018, 10:58 PM
    Has anyone watched this series? https://www.youtube.com/playlist?list=PLbgaMIhjbmEnaH_LTkxLI7FMa2HsnawM_
    😍 4
    s
    p
    • 3
    • 9
  • h

    HieiJ

    10/30/2018, 1:16 PM
    Hi all! I'm a newcomer of the functional programming in general; after a 3-days applied FP course (in scala) I've learned the basics of functional programming; after the course I switched to Kotlin+Arrow since I already knew the language quite well. Currently I'm facing some problems when approaching to a further steps in my understanding; I'm trying to better understand the monad transformers topic, and I've found online this little example: https://underscore.io/blog/posts/2014/07/27/readerwriterstate.html I'm struggling to write it in arrow since I can't understand how to use the ReaderT/WriterT transformers in order to achieve the same result described in the post. Do you have any similar example but done with Kotlin+Arrow?
    :kotlin-flag: 1
    l
    r
    • 3
    • 17
  • l

    Leandro Borges Ferreira

    10/31/2018, 10:19 PM
    First when: Just do a check for null with a elvis operator or, if use are using Option, use a fold
    h
    • 2
    • 7
  • l

    Leandro Borges Ferreira

    10/31/2018, 10:24 PM
    Also, don't use
    when
    with
    Either
    , there's the
    .fold
    to solve this problem
    h
    • 2
    • 1
  • p

    pakoito

    11/01/2018, 6:52 PM
    so my guess is a behavior regression
    v
    • 2
    • 3
  • h

    HieiJ

    11/01/2018, 9:02 PM
    Hi, I'm moving here the thread started before as it's changing a bit the topic and becoming a bit more generic. As a Kotlin developer, that has been introduced in the functional world recently (but with a Scala-based course), what do you think is a valid learning path? As the Arrow documentation is a bit incomplete at the moment, and it is very difficult to find also examples on the web on specific topics, I wonder if Kotlin+Arrow is a good path in order to learn the principles of FP... could it be better to start with some other language (es. Scala), learn the FP concepts (as there is a ton of material on the web) and then move back to Kotlin+Arrow? I'd like to stay on the Kotlin path but I'm struggling in finding out how to use Arrow to make the same things I found on the web with Scala (as in the previous ReaderT/WriterT question). What do you think about it?
    v
    p
    +2
    • 5
    • 13
  • k

    kitttn

    11/06/2018, 2:57 PM
    Yeah, i’ll have a look today and tomorrow then) The problem is i off for one week starting Thursday, so if i won’t have time to finish, i’ll let you know here tomorrow evening)
    m
    • 2
    • 1
  • r

    raulraja

    11/07/2018, 10:39 AM
    https://twitter.com/arrow_kt/status/1060109608717615104?s=19
    👌 4
    👏 10
    :arrow: 3
    l
    • 2
    • 1
Powered by Linen
Title
r

raulraja

11/07/2018, 10:39 AM
https://twitter.com/arrow_kt/status/1060109608717615104?s=19
👌 4
👏 10
:arrow: 3
l

Leandro Borges Ferreira

11/07/2018, 3:12 PM
Thanks for the welcome =]
View count: 3