Help / Release / J 6.01 / N0 V1 V2 Implemented
< Help
Jump to navigation
Jump to search
>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release
N0 V1 V2 Implemented |
initial writing: 2005-03-22 |
The isolated sequence N0 V1 V2 (noun verb verb) was previously uninterpreted (it signalled syntax error). It is now interpreted to mean N0"_ V1 V2 . The following examples illustrate uses of this new train.
0. Translate from upper to lower case.
U =: a. {~ (i.26)+a.i.'A' L =: a. {~ (i.26)+a.i.'a' lfu=: (L,a.) {~ (U,a.) i. ] lfu 'ONOMATOPOEIA metonymic' onomatopoeia metonymic
1. Select directories in a path.
dirs=: (] #~ 'd'=4{"1 [: > 4{"1 ]) @: (1!:0) dirs 'c:\j504\*.*' +------+------------------+-+---+------+ |addons|2005 3 11 18 20 42|0|rw-|----d-| +------+------------------+-+---+------+ |system|2005 3 9 15 44 48 |0|rw-|----d-| +------+------------------+-+---+------+ |temp |2005 3 9 15 44 49 |0|rw-|----d-| +------+------------------+-+---+------+ |user |2005 3 9 15 44 49 |0|rw-|----d-| +------+------------------+-+---+------+
2. An identity from math.
sin=: 1 o. ] cos=: 2 o. ] (^@j. = cos + 0j1 * sin) 1 2 3 0.1j_0.2 1 1 1 1