File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,10 @@ remold: func [
68
68
/only {For a block value, mold only its contents, no outer []}
69
69
/all {Mold in serialized format}
70
70
/flat {No indentation}
71
+ /part {Limit the length of the result}
72
+ limit [integer! ]
71
73
] [
72
- apply :mold [reduce :value only all flat]
74
+ apply :mold [reduce :value only all flat part limit ]
73
75
]
74
76
75
77
charset : func [
Original file line number Diff line number Diff line change @@ -304,6 +304,10 @@ Rebol [
304
304
;@@ https://github.com/Oldes/Rebol-issues/issues/2279
305
305
--assert "[[[^/ 1^/ ]]]" = mold load {[[[^/ 1^/ ]]]}
306
306
307
+ --test-- "remold"
308
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/983
309
+ --assert {[[1 2 3 4] ["A" [1 2 3 4]]]} = remold/flat [b c]
310
+
307
311
===end-group===
308
312
309
313
===start-group=== "mold map!"
You can’t perform that action at this time.
0 commit comments