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

Implementation

++  div                                                 ::  divide
  ~/  %div
  |=  [a=@ b=@]
  ^-  @
  ~|  'div'
  ?<  =(0 b)
  =+  c=@
  |-
  ?:  (lth a b)
    c
  $(a (sub a b), c +(c))

Comments



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

Clone this wiki locally