Skip to content

Commit 19cc56f

Browse files
committed
Fix mezz function ARRAY
The refinement argument is unset! when the refinement is not requested: >> array 5 ** Script error: value has no value ** Where: case array ** Near: block: make block! size case [ block? :rest [ lo... ** Note: use WHY? for more error information
1 parent 53e7bbf commit 19cc56f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mezz/mezz-series.r

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ array: func [
114114
any-function? :value [ ; So value can be a thunk :)
115115
loop size [block: insert/only block value] ; Called every time
116116
]
117-
true [
118-
insert/dup block value size
119-
]
117+
true [
118+
insert/dup block either initial [value][none] size
119+
]
120120
]
121121
head block
122122
]

0 commit comments

Comments
 (0)