File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
- ! Copyright (C) 2022 nomennescio
1
+ ! Copyright (C) 2022-2024 nomennescio
2
2
! see LICENSE.md for license
3
3
4
- USING: memory namespaces sequences sequences.rotated system vectors vocabs vocabs.hierarchy vocabs.loader ;
4
+ USING: kernel memory namespaces sequences sequences.rotated system vectors vocabs vocabs.hierarchy vocabs.loader ;
5
5
IN: codewars.imager
6
6
7
+ CONSTANT: preload-extra-vocabs {
8
+ "arrays" "assocs" "combinators" "coroutines" "decimals" "generators"
9
+ "grouping" "infix" "lists" "lru-cache" "math" "multisets" "pair-rocket"
10
+ "pairs" "path-finding" "qw" "sequences" "sets" "sorting" "splitting"
11
+ "trees" "variants"
12
+ }
13
+
7
14
: load-and-save-image ( -- )
8
15
"resource:pre" add-vocab-root vocab-roots [ -1 <rotated> >vector ] change-global
9
16
"resource:extra" vocab-roots get remove [ load-root ] each
17
+ "resource:extra" preload-extra-vocabs [ load-from-root ] with each
10
18
image-path save-image-and-exit
11
19
;
12
20
You can’t perform that action at this time.
0 commit comments