Advertisement
emacstheviking

Untitled

Nov 3rd, 2020 (edited)
2,038
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
J 0.28 KB | None | 0 0
  1. blocks =: monad define           NB. 3 : 0
  2.   body  =: 1!:1<y
  3.   lines =: LF chopstring body
  4.   NB. pairs =: I. (> cblk_tilde each lines) + (>)
  5.   pairs =: I. (> cblk_btick each lines) bitor (> cblk_tilde each lines)
  6.   bump  =: 2|#pairs
  7.   (bump+#pairs){.!.(#lines) pairs
  8.   _2 [\ pairs
  9. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement