[Jprogramming] how to test for a gerund

david alis david.alis at gmail.com
Fri Apr 9 13:23:23 HKT 2010


How do I test whether a variable X is a gerund?

The only way I have found so far is to test it against @. (agenda).

  X=.+`-
  X at .=
+-----+--+-+
|+-+-+|@.|=|
||+|-||  | |
|+-+-+|  | |
+-----+--+-+

   X=.3`3
   X at .=
|domain error
|       X at .=

Is there a better way?
Regards
David


More information about the Programming mailing list