Name that tune

For users of dfns, both novice and expert

Name that tune

Postby Phil Last on Tue May 29, 2012 6:07 pm

I think I'd have a lot more than my current 46 D-ops if I found it easier to name them.

I've coded the following conjunction many times but only ever in-line because I can't think of a name for it. It's a very clear concept but ...

      ummm←{⍺←⍵ ⋄ (⍺⍺ ⍺)⍵⍵ ⍵}

thus:

      f ummm g w ←→ (f w)g w

while:

      a f ummm g w ←→ (f a)g w

Anyone out there with an idea?
User avatar
Phil Last
 
Posts: 628
Joined: Thu Jun 18, 2009 6:29 pm
Location: Wessex

Re: Name that tune

Postby Roger|Dyalog on Tue May 29, 2012 9:07 pm

Since "hook" is
Code: Select all
    (f g) ⍵ ←→ ⍵ f (g ⍵)
  ⍺ (f g) ⍵ ←→ ⍺ f (g ⍵)
and
Code: Select all
    f ummm g w ←→ (f ⍵) g ⍵
  ⍺ f ummm g w ←→ (f ⍺) g ⍵
perhaps "left hook" is an appropriate name for ummm.

ummm also resembles the til operator in Iverson and Whitney's 1982 paper, Practical Uses of a Model of APL http://www.jsoftware.com/papers/APLModel.htm.
Code: Select all
    f⍨g ⍵ ←→ (g ⍵) f ⍵
  ⍺ f⍨g ⍵ ←→ (g ⍺) f ⍵
Til was one of the failed attempts to do "fork" with operators. I believe Arthur invented the definition and Ken invented the symbol. When Ken told Arthur the choice of symbol, he said, "Til, get it?" (Arthur did not. Do you?)
Roger|Dyalog
 
Posts: 238
Joined: Thu Jul 28, 2011 10:53 am


Return to Functional Programming

Who is online

Users browsing this forum: No registered users and 1 guest