Introduction to collection API
There are Some
and None
val i = Some(1)
val j = None
#! /usr/bin/env bash | |
# Setup: | |
# 1. Install latest Java and Virtual Box | |
# 2. Install Homebrew: | |
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# 3. run script | |
# curl -L https://gist.githubusercontent.com/jehrhardt/d5d7e364e12e283c8949/raw/install_defaults.sh | sh | |
# Install Emacs via Homebrew |
Basic instructions on setting up my Mac.
Download and install Java and Virtual Box from Oracle:
Install Homebrew
case class Foo(bar: Int) |
(s/def ::bar (s/and int? even? #(> % 1000))) | |
(s/def ::foo (s/keys :req [::bar])) | |
(s/valid? ::foo {:bar 10000}) |