• steventhedev@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    4 days 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
      ·
      4 days 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
        ·
        4 days 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.