log =: 13 :'x&^. y'
10 log 100
2
log
4 : 'x&^. y'
13 : doesn't always make a tacit verb and I'll guess that it ~never~
makes a tacit verb when x or y are used as arguments to adverbs or
conjunctions when forming a verb.
On 11/20/18 7:00 AM, [email protected] wrote:
Date: Tue, 20 Nov 2018 06:58:43 +0000
From: Linda Alvord<[email protected]>
To:"[email protected]" <[email protected]>
Subject: Re: [Jprogramming] Revisisting the Y combinator
Message-ID:
<dm5pr06mb31463467dc4dbdf817912d65b5...@dm5pr06mb3146.namprd06.prod.outlook.com>
Content-Type: text/plain; charset="utf-8"
f=: 13 :' 0{"1([:+/\|.)^:(i.y)1 1'
f 10
1 1 2 3 5 8 13 21 34 55
By definition: x u^:n y
x and y are known.
The noun n needs to be modified.
f handles this nicely with (i.]):
f
3 : ' 0{"1([:+/\|.)^:(i.y)1 1'
But the result it is not tacit!
My question is, why not?
;:'0{"1(+/\|.)^:(i.])1 1'
┌─┬─┬─┬─┬─┬─┬─┬─┬──┬─┬──┬─┬──┬─┬─┬───┐
│0│{│"│1│(│+│/│\│|.│)│^:│(│i.│]│)│1 1│
└─┴─┴─┴─┴─┴─┴─┴─┴──┴─┴──┴─┴──┴─┴─┴───┘
Y night be similar.
Linda
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm