forked from radicle-dev/radicle-alpha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reference-doc.yaml
154 lines (149 loc) · 2.11 KB
/
reference-doc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
---
intro: >-
This is the `radicle` reference document, with documentation for all functions
which come as part of the standard distribution.
primFnsDoc: >-
Primitive functions are those that are built into the compiler. They are
available on all machines but may be shadowed by later definitions. Those that
end in a `!` are only available locally, not on 'pure' machines.
preludeModulesDoc: >-
These are the modules included in the radicle prelude and the functions these
modules expose.
primFns:
# Basics
- "*"
- "+"
- "-"
- "/"
- "<"
- ">"
- eq?
- apply
- show
- throw
- exit!
- read-annotated
- read-many-annotated
# Eval
- base-eval
# Refs
- ref
- read-ref
- write-ref
# Pattern matching
- match-pat
# Sequences
- cons
- first
- rest
- add-right
- <>
- list
- list-to-vec
- vec-to-list
- zip
- map
- length
- foldl
- foldr
- drop
- sort-by
- take
- nth
- seq
# Dicts
- dict
- lookup
- insert
- delete
- member?
- map-keys
- map-values
# Strings
- string-append
- string-length
- string-replace
- foldl-string
# Types
- type
- atom?
- keyword?
- boolean?
- string?
- number?
- integral?
- vector?
- list?
- dict?
# Modules
- file-module!
- find-module-file!
- import
# State and Environment
- pure-state
- get-current-state
- set-current-state
- get-binding
- set-binding
- set-env
- state->env
# Time
- timestamp?
- unix-epoch
- from-unix-epoch
- now!
# JSON
- to-json
- from-json
# UUIDs
- uuid!
- uuid?
# Crypto
- default-ecc-curve
- verify-signature
- public-key?
- gen-key-pair!
- gen-signature!
# I/O
- get-args!
- put-str!
- get-line!
- load!
- cd!
- stdin!
- stdout!
- stderr!
- read-file!
- read-line-handle!
- open-file!
- close-handle!
- system!
- wait-for-process!
- write-handle!
# Repl
- subscribe-to!
# Documentation
- doc
- doc!
- apropos!
# All modules apart from prelude/test
modules:
- prelude/basic
- prelude/patterns
- prelude/bool
- prelude/seq
- prelude/list
- prelude/strings
- prelude/error-messages
- prelude/dict
- prelude/io
- prelude/exception
- prelude/set
- prelude/ref
- prelude/lens
- prelude/io-utils
- prelude/key-management
- prelude/machine
- prelude/state-machine
- prelude/validation
- prelude/util