--- doc/homework/homework5.html 2001/06/12 21:05:31 1.5
+++ doc/homework/homework5.html 2001/06/13 19:53:03 1.6
@@ -523,6 +523,43 @@
+ map(seed;a,b,c,d;w,x,y,z) |
+ Option 1 - &map($seed,[\$w,\$x,\$y,\$z],\@a) or
+ Option 2 - &map($seed,\@a,[$w,$x,$y,$z])
+ where @a=('A','B','C','D')
+ $w='W'
+ $x='X'
+ $y='Y'
+ $z='Z' |
+ Assigns to the variables $w, $x, $y and $z the values of the
+ variables A, B, C and D depending on the seed. (Option 1 of calling map).
+ In option 2, the values of $w, $x .. are mapped into the array @a. The two
+ options illustrate the different grouping. |
+ In CAPA, the arguments are divided into three groups separated
+ by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets or
+ using an array @a. Note the backslash (\) before the arguments in the
+ second and third groups. |
+
+
+
+
+ rmap(seed;a,b,c,d;w,x,y,z) |
+ &rmap($seed,[\$w,\$x,\$y,\$z],\@a) or
+ &rmap($seed,\@a,[$w,$x,$y,$z])
+ where @a=('A','B','C','D')
+ $w='W'
+ $x='X'
+ $y='Y'
+ $z='Z' |
+ The rmap functions does the reverse action of map if the same seed
+ is used in calling map and rmap. |
+ In CAPA, the arguments are divided into three groups separated
+ by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets or
+ using an array @a. Note the backslash (\) before the arguments in the
+ second and third groups. |
+
+
+
tex(a,b), tex("a","b") |
&tex($a,$b), &tex("a","b") |
Returns a if the output mode is in tex otherwise
|