Mix: Difference between revisions

Jump to navigation Jump to search
4 bytes added ,  20:42, 4 September 2021
→‎Examples: Use proper glyph when possible
(→‎Examples: Use proper glyph when possible)
Line 56: Line 56:
Example application, to find the longest common prefix:
Example application, to find the longest common prefix:
<source lang="apl">
<source lang="apl">
       lcp←{(+/^\(^/⊃=⊢)¨↓⍉↑⍵)↑⊃⍵}
       lcp←{(+/\(/⊃=⊢)¨↓⍉↑⍵)↑⊃⍵}
       lcp 'flowers' 'flow' 'flip'
       lcp 'flowers' 'flow' 'flip'
fl
fl

Navigation menu