Channel#receive
vs Channel#receive?
differs on their behavior for closed channels. Using them directly is always blocking.
Performing an operation over a closed and closing the channel during the operation must behave in the same way.
/* | |
* Viktor's Roam Mobile Double tap to Exluce Filters and Right click on bullets | |
* version: 0.2 | |
* author: @ViktorTabori | |
* | |
* How to install it: | |
* - go to page [[roam/js]] | |
* - create a node with: { {[[roam/js]]}} | |
* - create a clode block under it, and change its type from clojure to javascript | |
* - allow the running of the javascript on the {{[[roam/js]]}} node |
#!/bin/sh -eu | |
LOCAL_PROJECT_PATH=${1-$PWD} | |
BUILD_COMMAND=" | |
shards build --static --release | |
chown 1000:1000 -R bin | |
" | |
INSTALL_CRYSTAL=" | |
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >>/etc/apk/repositories | |
apk add --update --no-cache --force-overwrite \ |
Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x
curl -L http://bit.ly/10hA8iC | bash |