• steventhedev@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    this doesn’t hold a candle to APL:

    sudoku←{⎕io←0Whitney/Last
        p←{(↑⍵)∘{(⍺∨.=⍵)/⍳n×n}¨,⍵},(n*÷2){⍵,⍺⊥⌊⍵÷⍺}¨⍳n n←⍴⍵
        m←{(⊂⍵)⌈(⊂⍺=⍳⍴⍵)×(1+⍳n)~⍵[⍺⊃p]}
        (⍴⍵)∘⍴¨⊃{⊃,/⍺ m¨⍵}/{(⍸⍵=0),⊂⊂⍵},⍵
    }
    
    • Billegh@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 month ago

      The difference is that the above Sumerian could be dealt with using find and replace in a dire situation, while APL is a write-only language.

      • stingpie@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        I dunno, there’s probably less than ten people who can actually speak Sumerian, and there’s at least a dozen people who can read APL.