Post Reply 
RPL mini-challenge: Create an anti-Identity Matrix
05-12-2018, 07:33 PM
Post: #3
RE: RPL mini-challenge: Create an anti-Identity Matrix
Basic concept, squeezed a byte here and there:

Code:

«
  IDN NEG DUP 1 CON + 
»

And element-by-element concept:

Code:

«
  1 - → 
    N « 0 N FOR 'K' 1 N NDUPN 1 + K - 0 SWAP ROLLD 
    NEXT
    N 1 + DUP 2 →LIST →ARRY 
  »
»

I don't have timings or byte counts since I did it in newRPL. Somebody with a 50g in hand could measure?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: RPL mini-challenge: Create an anti-Identity Matrix - Claudio L. - 05-12-2018 07:33 PM



User(s) browsing this thread: 2 Guest(s)