mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-30 19:21:39 +00:00
fix indexed assignment for heterogeneous data
This commit is contained in:
parent
bde39756ab
commit
ab26b46efa
1 changed files with 3 additions and 0 deletions
|
|
@ -869,6 +869,9 @@ func (this *IndexedLvalueNode) Assign(
|
|||
for i, indexEvaluable := range this.indexEvaluables {
|
||||
index := indexEvaluable.Evaluate(state)
|
||||
indices[i] = &index
|
||||
if index.IsAbsent() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// This lets the user do '$y[ ["a", "b", "c"] ] = $x' in lieu of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue