Compare length of two strings: Difference between revisions

Content added Content deleted
Line 382: Line 382:
│4 │abcd │
│4 │abcd │
└──────┴─────────┘
└──────┴─────────┘

(;:'len vector') , ((;~ #)&> \: #S:0) 0 1 2 3 ; 0 1 ; (i. 8) ; 0
┌───┬───────────────┐
│len│vector │
├───┼───────────────┤
│8 │0 1 2 3 4 5 6 7│
├───┼───────────────┤
│4 │0 1 2 3 │
├───┼───────────────┤
│2 │0 1 │
├───┼───────────────┤
│1 │0 │
└───┴───────────────┘
</pre>
</pre>