+: y (Double)

Back to: Vocabulary

Twice the numeric noun y.

   +: 7
14

This following is an animation for the Double monadic verb that might be useful to those new to J

Embedded application/x-shockwave-flash

Common uses

Can lead to neater tacit expressions

   13 : '2*y'
2 * ]
   13 : '+:y'
+:

See Also


x +: y (Not-Or)

Back to: Vocabulary

The logical operation Not-Or between two Boolean nouns x and y.

   0 0 1 1 +: 0 1 0 1
1 0 0 0
   (0 1) +:/ (0 1)      NB. Truth-table of: +:
1 0
0 0
   (0 1) +:table (0 1)  NB. Truth-table with borders
┌──┬───┐
│+:│0 1│
├──┼───┤
│0 │1 0│
│1 │0 0│
└──┴───┘

Note: Restricted to boolean arguments:

   1 +: 2
|domain error
|   1    +:2

The following is an animation that might be useful to those new to J

Embedded application/x-shockwave-flash

Common uses

See Also


CategoryVoc

Vocabulary/plusco (last edited 2011-06-17 02:27:43 by IanClark)