|
definition: |
(!!) :: [a] -> Int -> a
(x:xs) !! n | n == 0 = x
| n > 0 = xs !! (n - 1)
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
| List index (subscript) operator, head has index 0. |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({:},_) |-> _}
|
|
name: |
!! |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
[a] -> Int -> a |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |