Dyalog / APLCourse

Dyalog APL self-study course
https://course.dyalog.com
8 stars 3 forks source link

Request: examples of commute as "writing code the way you think of it" #40

Open rikedyp opened 1 year ago

rikedyp commented 1 year ago

per @suemanning

suemanning commented 1 year ago

A simple example from the course: To remove vowels, we must consider the columns of our outer product equality. We then keep elements which are not ~⍵ vowels. RemoveVowels ← {⍵/⍨~∨⌿'aeiou'∘.=⍵}

On Fri, Dec 2, 2022 at 11:45 AM RikedyP @.***> wrote:

per @suemanning https://github.com/suemanning

— Reply to this email directly, view it on GitHub https://github.com/Dyalog/APLCourse/issues/40, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWE2XC7CVKMRLSOXYC66L3WLIRSFANCNFSM6AAAAAASSDEVU4 . You are receiving this because you were mentioned.Message ID: @.***>

suemanning commented 1 year ago

Also any of the average ones, this is mine from another exercise: (≢w)÷ ⍨+/w←(class='B')/height

On Fri, Dec 2, 2022 at 7:59 PM Sue Manning @.***> wrote:

A simple example from the course: To remove vowels, we must consider the columns of our outer product equality. We then keep elements which are not ~⍵ vowels. RemoveVowels ← {⍵/⍨~∨⌿'aeiou'∘.=⍵}

On Fri, Dec 2, 2022 at 11:45 AM RikedyP @.***> wrote:

per @suemanning https://github.com/suemanning

— Reply to this email directly, view it on GitHub https://github.com/Dyalog/APLCourse/issues/40, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWE2XC7CVKMRLSOXYC66L3WLIRSFANCNFSM6AAAAAASSDEVU4 . You are receiving this because you were mentioned.Message ID: @.***>