You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If for some reason you would like to over-ride or add a new token pattern.
105
105
106
106
```js
107
107
edn.setTokenPattern()))
108
108
```
109
109
110
-
#####setTokenAction (tokenName, actionCallback)
110
+
#####setTokenAction (tokenName, actionCallback)
111
111
Allows for customization of token handling upon match. For instance if you decided you would prefer nil to be represented by undefined instead of null (default).
This is useful if you want to over-ride the naive implementations of Map etc.
119
119
120
120
```js
@@ -206,7 +206,7 @@ Used to create symbols from with in js for encoding into edn.
206
206
### Keyword
207
207
As above but for keywords. Note that the constructor enforced that keywords start with a ":" character.
208
208
209
-
####Iterable [List Vector Set]
209
+
####Iterable [List Vector Set]
210
210
List, Vector and Set all implement the following methods:
211
211
212
212
*`exists (key)` -> boolean indicating existance of key
@@ -216,7 +216,7 @@ List, Vector and Set all implement the following methods:
216
216
*`map (iter)` -> iterate over all members calling iter on each and returning a new instace of self
217
217
*`walk (iter)` -> recursively walk the data returning a new instance of self
218
218
219
-
####Map
219
+
####Map
220
220
Supports any type of object as key. Supports all of the methods listed for Iterable plus `indexOf` which returns the index of the item, which can be 0 and thus non-truthy.
221
221
222
222
`each`, `map` and `walk` all accept a callback which takes the value as the first argument and the key as the second. In the case of map and walk if you want to modify the key you must return a `Pair` object e.g.
@@ -231,7 +231,7 @@ yields:
231
231
{:x-squared90000:y-squared640000}
232
232
```
233
233
234
-
####Tag
234
+
####Tag
235
235
Used for defining Tag Actions. Has a constructor which accepts 2..n args where the first arg is your a namespace and the rest are used to categorize the tag. **Tag** provides two methods `ns` and `dn`:
236
236
237
237
```js
@@ -245,7 +245,7 @@ Constructor also supports being passed single argument delimited by / e.g:
245
245
newedn.Tag('myApp/people/special/stuff')
246
246
```
247
247
248
-
####Tagged
248
+
####Tagged
249
249
If you do not have tag handlers specified for a given tag you will end up with **Tagged** items in your result which have two methods:
0 commit comments