Sleep 2.1
Tutorial
Introduction
I.
What is Sleep?
II.
Manual Conventions
III.
Acknowledgements
1.
Getting Started
1.1
Stand-alone Scripts
1.2
The Sleep Console
2.
Scalars
2.1
Scalar Expressions
2.2
Numbers
2.3
Strings
3.
Data Structures
3.1
Arrays
3.2
Stacks, Lists, and Sets
3.2
Hashes
4.
Flow Control
4.1
Comparisons
4.2
Loops
4.3
Exceptions
4.4
Assertions
5.
Functions
5.1
Subroutines
5.2
Scalar Scope
5.3
Closures
5.4
Continuations
6.
Regular Expressions
6.1
The Matcher
6.2
Pattern Elements
6.3
Quantifiers
6.4
Special Constructs
7.
Java Objects
7.1
Object Expressions
7.2
Proxy Instances
7.3
Exceptions
8.
Input / Output
8.1
I/O Handles
8.2
String I/O
8.3
Binary I/O
9.
Sleep Integration
9.1
Embed Sleep
9.2
Manage Multiple Scripts
9.3
Extend Sleep
9.4
Scalars
Reference
Arrays
in
=~
add
addAll
cast
clear
concat
copy
filter
flatten
map
pop
push
putAll
reduce
remove
removeAll
removeAt
retainAll
reverse
search
shift
size
sort
sorta
sortd
sortn
splice
sublist
sum
Date/Time
formatDate
parseDate
ticks
File System
-canread
-canwrite
-exists
-isDir
-isFile
-isHidden
chdir
createNewFile
cwd
deleteFile
getFileName
getFileParent
getFileProper
lastModified
listRoots
lof
ls
mkdir
rename
setLastModified
setReadOnly
Hashes
in
add
clear
copy
keys
ohash
ohasha
putAll
remove
setMissPolicy
setRemovalPolicy
size
values
Input/Output
-eof
allocate
available
bread
bwrite
closef
connect
exec
fork
getConsole
listen
mark
openf
print
printAll
printEOF
println
readAll
readAsObject
readb
readc
readln
readObject
reset
setEncoding
sizeof
skip
wait
writeAsObject
writeb
writeObject
Math
<=>
abs
acos
asin
atan
atan2
ceil
checksum
cos
degrees
digest
double
exp
floor
formatNumber
int
log
long
not
parseNumber
radians
rand
round
sin
sqrt
srand
tan
uint
Strings
hasmatch
ismatch
iswm
cmp
asc
byteAt
cast
chr
charAt
find
indexOf
join
lc
left
lindexOf
matched
matches
mid
pack
replace
replaceAt
right
split
strlen
strrep
substr
tr
uc
unpack
Utility
is
isa
acquire
casti
checkError
compile_closure
copy
debug
eval
exit
expr
function
getStackTrace
global
iff
include
inline
invoke
lambda
let
local
newInstance
popl
profile
pushl
release
scalar
semaphore
setf
setField
sleep
systemProperties
taint
this
typeOf
untaint
use
warn
watch