Skip to content

Quick reference

Conor O'Brien edited this page Mar 20, 2017 · 2 revisions

This page contains some quick reference for commands that are potentially confusing.

Ranges

Stacked has an assortment of operators devoted to generating integer ranges.

a b |>   is   [a, b]
a b ..   is   [a, b)
a b #>   is   [a, a + b]
  z :>   is   [0, a)
  z ~>   is   [1, a]

Each range vectorizes, so something like 5 ~> ~> is valid. This example would produce:

((1)
 (1 2)
 (1 2 3)
 (1 2 3 4)
 (1 2 3 4 5))

#-ops

#-ops are (usually) aliases for commonly used functions, with the exception of #>. As of 3/20/2017, there are 13 #-ops.

#   get       #!  oneach
##  modget    #$  SHAPE
#&  FIX       #,  pair
#.  ord       #/  insert
#:  chr       #>  slicerange
#\  doinsert  #`  join
#~  eval

Clone this wiki locally