https://kotlinlang.org logo
Join Slack
Channels
announcements
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
akkurate
alexa
algeria
algolialibraries
amper
amsterdam
android
android-architecture
android-databinding
androidgithubprojects
android-studio
androidthings
androidx
androidx-xprocessing
anime
anko
apollo-kotlin
appintro
appyx
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
aws-sdk
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
benchmarks
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chennai
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
competitivecoding
competitive-programming
compiler
compose
compose-android
compose-desktop
compose-destinations
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
confetti
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cup-presentations
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
dependency-injection
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effectivekotlin
effective-kotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
fleet
flow
flowmvi
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
fun-adaptive
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
gsoc-compose-multiplatform-storybook
gsoc-ij-gradle-plugin
gsoc-kmp-bazel
gsoc-kmp-bazel
gsoc-kmp-gemini-firebase
gsoc-kotlin-bom-bazel
gsoc-kotlin-lsp-project
gsoc-kotlin-openrewrite
gsoc-wasm-incremental-compilation
gui
hackathons
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hiring-french
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
j2k
jackson-kotlin
jadx
japanese
jasync-sql
javadevelopers
javafx
javalin
javascript
java-to-kotlin-refactoring
jdbi
jewel
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm
jvm-ir-backend-feedback
jxadapter
k2-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kilua
kinta
klaxon
klibs-io
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-contributors
komapper
kondor-json
kong
konsist
konsist-dev
kontent
kontributors
koog-agentic-framework
korau
kore
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlinacademy
kotlin-asia
kotlin-beam
kotlinbot
kotlin-by-example
kotlinconf
kotlin-csv
kotlin-data-storage
kotlindl
kotlinforbeginners
kotlin-foundation
kotlin-fuel
kotlingforbeginners
kotlin-in-action
kotlin-inject
kotlin-kinetics
kotlin-latam
kotlin-logging
kotlinlondon
kotlinmad
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlinprogrammers
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlinsu
kotlin-szeged
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlin-website
kotlinx-collections-immutable
kotlinx-datetime
kotlinx-files
kotlinx-html
kotlinx-rpc
kotools
kotrix
kotson
kotzilla-platform
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
kstatemachine
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
lincheck
linenbot
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
newname
new-zealand
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
olpaka
oolong
opensavvy
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
parameterize
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
power-assert
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
store
storyboard
storytale
strife-discord-lib
strikt
students
stuttgart
sudan
supabase-kt
swagger-gradle-codegen
swarm
sweden
swift-export
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
terpal
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
vilnius-kug
vim
vkug
vuejs
webassembly
web-mpp
webrtc
wimix_sentry
wwdc
zircon
Powered by
# kotlin-by-example
  • h

    hhariri

    06/11/2017, 3:32 PM
    set the channel description: Kotlin By Example Contributions
  • h

    hhariri

    06/12/2017, 2:26 PM
    http://hadihariri.com/2017/06/12/kotlin-by-example/
  • c

    casablancais

    06/12/2017, 3:36 PM
    I like the idea 👍
  • g

    gonzalonm

    06/12/2017, 4:41 PM
    nice, I’ll try to contribute with some of piece of code
  • h

    hhariri

    06/12/2017, 5:45 PM
    Thank! I’ll try and add placeholders for examples we need
  • c

    curioustechizen

    06/12/2017, 6:26 PM
    Great idea 👍
  • c

    curioustechizen

    06/12/2017, 6:28 PM
    One thing that's not clear is which GitHub repo should be used by contributors? I only see the link to mark-code itself.
    h
    • 2
    • 1
  • s

    scott

    06/15/2017, 10:25 PM
    put in a pull-request for loops (for, while, and do while)
  • o

    oleksandr.samsonov

    06/16/2017, 11:14 PM
    @oleksandr.samsonov has left the channel
  • h

    hhariri

    06/19/2017, 7:18 PM
    I’d taken a few days off, so running behind on the PR’s. Hope to get to them tomorrow and day after
  • a

    arocnies

    06/24/2017, 3:48 AM
    @arocnies has left the channel
  • h

    hhariri

    06/27/2017, 5:27 PM
    So I’m going to make some changes to the site.
  • h

    hhariri

    06/27/2017, 5:27 PM
    I want to bring in executable code blocks so people can test the code right there and then. This might require some changes to how we write things. I’ll port all the existing contributions and set up guidelines moving forward.
    👍 2
  • h

    hhariri

    06/27/2017, 5:28 PM
    It’s a bit of work, but I think it will be better to allow people to play with the code directly there without having to fire up an IDE.
  • h

    hhariri

    06/27/2017, 5:28 PM
    If any objections, concerns, or thoughts, feel free to comment 🙂
  • h

    hhariri

    06/29/2017, 6:25 AM
    new look
  • h

    hhariri

    06/29/2017, 6:26 AM
    @User uploaded a file:

    Pasted image at 2017-06-29, 8:26 AM▾

  • h

    hhariri

    06/30/2017, 8:46 PM
    We’re back in business
  • r

    rajendhiraneasu

    07/06/2017, 12:43 PM
    hi guys, just i'm a beginner to kotlin progra, any one can explain what is the difference between abstract and interface in kotlin?
    h
    • 2
    • 4
  • h

    hhariri

    07/06/2017, 12:45 PM
    set the channel topic: Discussions around the site kotlinbyexample.org
  • h

    horse_badorties

    08/03/2017, 11:49 AM
    Hi all, I can't see executable code blocks when accessing kotlinbyexample.org ? Have they been removed or is that a browser issue?
    k
    • 2
    • 2
  • r

    rebcabin

    08/12/2017, 5:28 PM
    Trying to run the kotlin-koans https://kotlinlang.org/docs/tutorials/koans.html, I cloned the repo, imported as a gradle wrapper task, and tried to run the first koa n00Start.kt using the Run menu in IntelliJ CE 2017.2.1. Gradle builds it, but doesn't run it. I expected to see some kind of JUnit window, but I just get "BUILD SUCCESSFUL" from Gradle. I don't know Gradle at all; is further config necessary to get the koans to run?
  • h

    huutho

    12/16/2017, 6:04 PM
    @
  • c

    chirag

    12/28/2017, 7:20 AM
    Copy code
    class ChildValidation<T> {
        var validations: MutableList<Pair<T.() -> Boolean, String>> = mutableListOf()
    
        fun be(validate: T.() -> Boolean) = validate
    
        infix fun (T.() -> Boolean).message(error: String) {
            validations.add(this to error)
        }
    }
    Hey guys ,I am trying to understand library code written in Kotlin, I am not getting the syntax
    Copy code
    T.()
    What is this representing ? I know,
    Copy code
    () -> Unit
    is used to represent a function .but this is
    Copy code
    T.() -> Boolean
    different . Any help is appreciated
  • v

    Vishal

    03/16/2019, 8:00 AM
    What is class
  • s

    Slackbot

    12/31/2020, 10:49 AM
    This message was deleted.
    c
    c
    • 3
    • 2