>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




General

Author Thread: Removing Blank Lines Problem
Michael.Shumate
Removing Blank Lines Problem
Posted: Friday, December 01, 2006 5:06 PM (EST)

I have a grid, text values, APL+WIN 6.4:

 

z„'TableMant.fGrd.gdMTI' Œwi xText' (¼TblRows) (¼3)
     

½z
10 3

 

(0¬½¨z[;1])šz
DOMAIN ERROR
      (0¬½¨z[;1])šz
      ^          ^

      0¬½¨z[;1]
 1  1  1  1  1  0  0  0  0  0

      (
      (1  1  1  1  1  0  0  0  0  0)šz
 A04.0 A04.0 ABCD
 A04.1 A04.1 DEGH
 A04.2 A04.2 DAFT
 A04.3 A04.3 DAPD
 A04.4 A04.4 RSFT
   

What changes do I have to make to the mask expression to make it work directly?

 

Thanks,

 

/mas

 


Comments:

Author Thread:
Michael.Shumate
Removing Blank Lines Problem
Posted: Friday, December 01, 2006 5:18 PM (EST)

Never Mind! :-}

 

 (,œ0¬½¨z[;1])šz

 

This works.

 

Sorry.

 

/mas

     

davin.church
Removing Blank Lines Problem
Posted: Saturday, December 02, 2006 7:55 PM (EST)
Just in case you didn't figure out why, the ½¨ returns a vector of vectors, the doesn't change that, and the š can't take a nested argument.  I generally use a †¨½¨ to avoid that, or ¹½¨ if you're sure all the items are vectors.

     



APL2000 Official Web Site

To err is human, but when the eraser wears out ahead of the pencil, you're overdoing it.
- Josh Jenkins

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |