Changes

Jump to navigation Jump to search

var.recallAt

127 bytes added, 13:58, 7 June 2012
no edit summary
Line 1: Line 1:  +
__NOTOC__
 +
 
var.'''recallAt''' is a function that is part of the [[:Category:var|Var]] library.<br />
 
var.'''recallAt''' is a function that is part of the [[:Category:var|Var]] library.<br />
   Line 15: Line 17:  
! Parameter !! Type !! Description
 
! Parameter !! Type !! Description
 
|-
 
|-
| <u><center>name</center></u> || string || Description of arg1
+
| <u><center>name</center></u> || string || Name of the variable to grab from
 
|-
 
|-
| <u><center>column</center></u> || number || Description of arg2
+
| <u><center>column</center></u> || number || 1-based column number of the matrix or list.
 
|-
 
|-
| <u><center>row</center></u> || number || Description of arg3
+
| <u><center>row</center></u> || number || ''(Optional)'' 1-based row number. ''row'' is only required when recalling a value from a matrix.
 
|-
 
|-
 
|}
 
|}
    
== Example  ==
 
== Example  ==
   
<syntaxhighlight>var.store("mat", {{1,2}, {3,4}}) -- create matrix mat in the symbol table
 
<syntaxhighlight>var.store("mat", {{1,2}, {3,4}}) -- create matrix mat in the symbol table
 
var.storeAt("mat", 13.3, 1, 1) -- puts the number 13.1 into the field 1,1 of the matrix
 
var.storeAt("mat", 13.3, 1, 1) -- puts the number 13.1 into the field 1,1 of the matrix

Navigation menu