|
definition: |
readBin :: ReadS Int readBin l = maybeToList $ readNumPrefix (dropWhile isSpace l) Nothing 2 isBinDigit digitToInt |
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Read a binary number as a first token in a string. The string might contain leadings blanks and the number is read up to the first non-binary digit. On success returns `[(v,s)]`, where `v` is the value of the number and s is the remaing string without the number token. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> _}
|
|
name: |
readBin |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> [(Prelude.Int, String)] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |