Fixed issue #12
This commit is contained in:
parent
e674052942
commit
d004955c4e
|
@ -523,18 +523,23 @@ impl<H: HostInterface> ExecEnv<H> {
|
|||
.take(n_alternations)
|
||||
.map(|chunk| ValueRef::clone(&chunk[0]))
|
||||
.chain(
|
||||
args[2 * n_alternations..]
|
||||
args.get(2 * n_alternations..)
|
||||
.iter()
|
||||
.copied()
|
||||
.flatten()
|
||||
.map(ValueRef::clone)
|
||||
.take(extra_l),
|
||||
)
|
||||
.collect(),
|
||||
args.chunks(2)
|
||||
.take(n_alternations)
|
||||
.map(|chunk| ValueRef::clone(&chunk[1]))
|
||||
.flat_map(|chunk| chunk.get(1))
|
||||
.map(ValueRef::clone)
|
||||
.chain(
|
||||
args[2 * n_alternations..]
|
||||
args.get(2 * n_alternations..)
|
||||
.iter()
|
||||
.copied()
|
||||
.flatten()
|
||||
.map(ValueRef::clone)
|
||||
.take(extra_r),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue