[Jprogramming] Open, padding with zeroes

R.E. Boss r.e.boss at planet.nl
Wed Dec 5 10:40:56 UTC 2012


   >,:!.'0'L:0/'11';'111'  
110
111

Notice: 

   $>,:!.'0'L:0/'11';'111'  
2 3

   $,:!.'0'S:0/'11';'111'  
1 2 3

This question was posed many times before.


R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: programming-bounces at forums.jsoftware.com [mailto:programming-bounces at forums.jsoftware.com] Namens Bo Jacoby
> Verzonden: woensdag 5 december 2012 11:26
> Aan: programming at jsoftware.com
> Onderwerp: [Jprogramming] Open, padding with zeroes
> 
> Dear J'ers
> 
> The Fit conjunction (!.) changes the default fill character like this
>    3 ({.!.'0') '11'
> 110
> but Fit gives domain error with Open:
>    >'11';'111'
> 11
> 111
>    (>!.'0')'11';'111'
> |domain error
> |   (    >!.'0')'11';'111'
> 
> I want this
> 110
> 111
> 
> What is the work-around?
> 
> The dictionary entry for Open says: 'Results of different shapes are padded as defined in Section II B. ', but Section II B is not
about
> padding. Should it have been another section?
> 
> - Bo
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



More information about the Programming mailing list