boxdraw_j_ 1

   type_z_
{&(<;._1 '|invalid name|not defined|noun|adverb|conjunction|verb|unknown')@(2&+)@(4!:0)&boxopen

   ddot =: d.

   type'ddot'
+-----------+
|conjunction|
+-----------+

   k =: (^@:(3&*)) ddot 1 2 3

   NB. k is a train that appends three derivatives of ^@:(3&*)
   k NB. verb1  v2     verb3     verb4    verb5
((3"0 * ^@(3&*)) , (9"0 * ^@(3&*)) , 27"0 * ^@(3&*))"0

   type'k'
+----+
|verb|
+----+

   (0"_ { k) NB. train of 3 verbs
0"_ { k

   (0"_ { k) 3
24309.3

   [ RESULT_OF_K =: k 3
24309.3 72927.8 218783

   type'RESULT_OF_K'
+----+
|noun|
+----+

Date: Wed, 15 Apr 2015 07:34:05 +0100
From: Jon Hough<[email protected]>
To:"[email protected]"  <[email protected]>
Subject: Re: [Jprogramming] Verb to string and Verb array
Message-ID:<[email protected]>
Content-Type: text/plain; charset="koi8-r"
I am slightly confused with how the tie (gerund) and or the linear 
representation are related to this:

k =: (^@:(3&*)) d. 1 2 3


results in :




((3"0 * ^@(3&*)) , (9"0 * ^@(3&*)) , 27"0 * ^@(3&*))"0


Which seems to be three verbs; If I do :
k 3


I get :


24309.3 72927.8 218783
And I can also do:


(0{k) 3


24309.3




So whatever k is, it returns three nouns for one input noun, and it is 
indexable so is an array of some sort. But what exactly (in terms of 
parts-of-speech) is k?



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to