definition: |
spanLength :: Span -> (Int, Int) spanLength sp = case sp of Span (Position x1 y1) (Position x2 y2) -> (x2-x1, y2-y1) _ -> (0, 0) |
demand: |
argument 1 |
deterministic: |
deterministic operation |
failfree: |
_ |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{({Span}) |-> {(,)} || ({NoSpan}) |-> {(,)}} |
name: |
spanLength |
precedence: |
no precedence defined |
result-values: |
{(,)} |
signature: |
Span -> (Prelude.Int, Prelude.Int) |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |