Skip to content

Instantly share code, notes, and snippets.

View arekolek's full-sized avatar

Arek Olek arekolek

  • FARA
View GitHub Profile
@arekolek
arekolek / KotlinFunctions.md
Last active February 22, 2019 05:20 — forked from cbeyls/KotlinFunctions.md
Comparison of Kotlin functions: also, apply, let, run, with

Receiver vs. return value:

Returns block result Returns receiver
Receiver available as it let also
Receiver available as this run apply

How to read the table:

abstype and andalso as case do datatype else eqtype end exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype while
use
:: nil null length hd tl rev concat revAppend app map foldl foldr
size substring concat str implode explode
Array.maxLen Array.array Array.fromList Array.tabulate Array.length Array.sub Array.update Array.vector Array.copy Array.copyVec Array.appi Array.app Array.modifyi Array.modify Array.foldli Array.foldri Array.foldl Array.foldr Array.findi Array.find Array.exists Array.all Array.collate