[Jprogramming] tacit adverb
Dan Bron
j at bron.us
Tue Feb 21 00:02:52 HKT 2012
> A=: 1 : '0&(;@:u) :: empty'
Can be expressed tacitly as B=: 0&(;@:) (:: empty) . In general, tacit
adverbs are trains of adverbial clauses, so if you want to add another, you
only need to wrap it in parens and tack it on the end.
Though your phrasing 0&(;@:) is very appealing; it seems to "beg for an
argument" more than the vanilla formulation of (0&) (;@:) .
-Dan
-----Original Message-----
From: programming-bounces at jsoftware.com
[mailto:programming-bounces at jsoftware.com] On Behalf Of David Ward Lambert
Sent: Monday, February 20, 2012 10:50 AM
To: programming
Subject: [Jprogramming] tacit adverb
I had
A=: 0&(;@:)
u A y
My u raises an error if y is bad, in which case EMPTY is a reasonable
result. I'd prefer not checking y in each u. What is the tacit
A=: 1 : '0&(;@:u) :: empty'
? Thanks, Dave.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list