KC
Size: a a a
KC
ST
ST
KC
ST
PM
ST
ST
(def chan-0 (a/chan)) ;; unbuffered channel: acts as a rendez-vous point.
ST
;; Data is transmitted on queue-like channels. By default channels
;; are unbuffered (0-length) - they require producer and consumer to
;; rendezvous for the transfer of a value through the channel.
;; Use `chan` to make an unbuffered channel:
(chan)
ST
unbuffered which block if there's no "rendezvous", i.e. there must be someone who puts (c <-) to and someone who takes (<- c) from the channel.
ST
DL
E
DL
А(
Г
(def m
{"start" "hello world!"
"end" "bye :("})
(fn [x]
(condp = x
...))
Г
(fn [x] (get m x "default-case"))
Г