Skip to content

Commit

Permalink
Accept indexes for construction.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotmarcot committed Oct 1, 2012
1 parent 090a0f4 commit 93ee97c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scilab/Interpreter.hs
Expand Up @@ -52,7 +52,9 @@ exec (CAttr (RVI var [ix]) expr)
$ const
$ M.insert
var
(Number (typeOld && typeNew) $ old V.// [(ix_, V.head new)])
(Number (typeOld && typeNew)
$ (old V.++ V.replicate (ix_ - V.length old) 0)
V.// [(ix_, V.head new)])
vars
exec (CAttr (RVI {}) _) = error "exec (CAttr (RVI {}) _)"
exec (CExpr expr) = void $ eval expr
Expand Down

0 comments on commit 93ee97c

Please sign in to comment.