|
definition: |
words :: String -> [String]
words s = let s1 = dropWhile isSpace s
in if s1 == "" then []
else let (w, s2) = break isSpace s1
in w : words s2
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
| Breaks a string into a list of words where the words are delimited by white spaces. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> {:,[]}}
|
|
name: |
words |
|
precedence: |
no precedence defined |
|
result-values: |
{:,[]}
|
|
signature: |
[Char] -> [[Char]] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |