To Do

Let your imagination run wild

To Do

PostPosted by forummaster » Thu Jan 15, 2009 12:20 pm

My To Do list for primtiive functions includes



  • Dyadic Down Tack (L⍕R) where L is a character vector (Format By Example from APL2)

  • Dyadic Left Shoe (L⊂R) (Partitioned Enclose from APL2)

  • Dyadic Epsilon-Underbar (L⍷R) (Find from APL2)


forummaster
 
Posts: 555
Joined: Wed Jan 23, 2013 1:00 pm

Re: To Do

PostPosted by tobia » Wed Jan 29, 2014 2:54 pm

As a newbie, I half-expected monadic drop to be what other languages call "rest" or "tail": all elements but the first.

(↓x) ≡ (1↓x)

This is probably much less useful in APL than in Haskell or LISP, as head-tail recursion is kind of against the array-oriented style of the language. Besides, I've found out there are more idiomatic ways to do single-element iteration or recursion, such as ¨ or /. Still, I think it looks right, certainly more so than Dyalog's weird meaning of ⊂[≢⍴x]x
tobia
 
Posts: 3
Joined: Tue Jan 28, 2014 6:39 pm


Return to New Primitive Functions

Who is online

Users browsing this forum: No registered users and 0 guests

cron