igit" class="anchor"></a><code><span><span class="keyword">val</span> digit : <span>char <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>digit</code> parses one of the digit characters, <code>0 .. 9</code>.</p><p>Examples</p><pre><code>module P = Reparse

;;
let p = P.(take digit) in
let v = P.parse_string p &quot;0123456789a&quot; in
v = [ '0'; '1'; '2'; '3'; '4'; '5'; '6'; '7'; '8'; '9' ]</code></pre></div></div><div class="odoc-spec"><div class="spec value" id="val-digits