File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 3
3
Title: "REBOL 3 Mezzanine: Save"
4
4
Rights: {
5
5
Copyright 2012 REBOL Technologies
6
+ Copyright 2012-2023 Rebol Open Source Contributors
6
7
REBOL is a trademark of REBOL Technologies
7
8
}
8
9
License: {
@@ -95,7 +96,7 @@ save: function [
95
96
]
96
97
97
98
; (Maybe /all should be the default? See CureCode.)
98
- data: either all [ mold /all/ only :value ] [ mold /only :value ]
99
+ data: mold/only/: all :value
99
100
append data newline ; mold does not append a newline? Nope.
100
101
101
102
case /all [
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ reword: func [
289
289
if wtype <> type? char [char: to wtype char]
290
290
[a: any [to char b: char [escape | none]] to end fout]
291
291
]
292
- either case [ parse/case source rule] [parse source rule]
292
+ parse/: case source rule
293
293
; Return end of output with /into, head otherwise
294
294
either into [output] [head output]
295
295
]
@@ -378,9 +378,7 @@ alter: func [
378
378
append series :value true
379
379
]
380
380
]
381
- to logic! unless remove (
382
- either case [find/case series :value ] [find series :value ]
383
- ) [append series :value ]
381
+ to logic! unless remove (find/: case series :value ) [append series :value ]
384
382
]
385
383
386
384
supplement : func [
@@ -392,9 +390,7 @@ supplement: func [
392
390
] [
393
391
result: series ; to return series at same position if value is found
394
392
any [
395
- either case [
396
- find/case series :value
397
- ][ find series :value ]
393
+ find/: case series :value
398
394
append series :value
399
395
]
400
396
result
You can’t perform that action at this time.
0 commit comments