On Thu, Apr 8, 2010 at 12:47 PM, Raul Miller <[email protected]> wrote:
> On Thu, Apr 8, 2010 at 12:37 PM, Sprague, Webb (OFM)
> <[email protected]> wrote:
>> getpath =: 3 : 0
>>        dirname=: #~  '/\' +./\...@e.~ ]
>>        sourcepath=: dirname (4!:4<'dirname') {:: 4!:3''
>>        sourcepath
>> )
>
> I would change =: to =. for the temporary names
> you define.

Or, better yet:

getpath =: 3 : 0
       dirname=. #~  '/\' +./\...@e.~ ]
       dirname (4!:4<'dirname') {:: 4!:3''
)

There is no point in defining a name you do not need.

FYI,

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

Reply via email to