Mesh: Difference between revisions

Jump to navigation Jump to search
26 bytes removed ,  13:09, 4 April 2020
dzaima/APL update
(dzaima/APL update)
Line 50: Line 50:
t←(~u)\a ⋄ (u/t)←b ⋄ t
t←(~u)\a ⋄ (u/t)←b ⋄ t
</source>
</source>
The two steps can be reversed, as long as <source lang=apl inline>a</source> is paired with <source lang=apl inline>~u</source> and <source lang=apl inline>b</source> is paired with <source lang=apl inline>u</source>. [[Structural Under]] allows the assignment to be performed in a functional style, with no temporary variable. For example, in [[dzaima/APL]], which implements Structural Under but not Expand, admits this implementation:
The two steps can be reversed, as long as <source lang=apl inline>a</source> is paired with <source lang=apl inline>~u</source> and <source lang=apl inline>b</source> is paired with <source lang=apl inline>u</source>. [[Structural Under]] allows the assignment to be performed in a functional style, with no temporary variable. For example, [[dzaima/APL]] admits these implementations:
<source lang=apl>
<source lang=apl>
b⍨⍢(u∘⌿) (~u)⍀a
a⍨⍢((~u)∘⌿) b⍨⍢(u∘⌿) a,b
a⍨⍢((~u)∘⌿) b⍨⍢(u∘⌿) a,b
</source>{{Works in|[[dzaima/APL]]}}
</source>{{Works in|[[dzaima/APL]]}}
trusted
41

edits

Navigation menu