Skip to content
Adam Bliss edited this page Oct 25, 2013 · 1 revision

Implementation

++  trim
  |=  [a=@ b=tape]
  ^-  [p=tape q=tape]
  ?@  b
    [~ ~]
  ?:  =(0 a)
    [~ b]
  =+  c=$(a (dec a), b t.b)
  [[i.b p.c] q.c]

Comments



Parts of this document are generated automatically. Edits within the comments section will be preserved.

Clone this wiki locally