CurryInfo: currypp-3.2.0 / CPP.ICode.TransICode.splitByLine

definition: Info
 
splitByLine :: String -> (String,String)
splitByLine s = splitByLineIter "" s
  where
    splitByLineIter acc "" = (reverse acc,"")
    splitByLineIter acc (c:cs) | c == '\n' = (reverse ('\n':acc),cs)
                               | otherwise = splitByLineIter (c:acc) cs
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
The function splitByLine splits a string at the first newline
@param s - The string
@result A pair of strings, one containg the string before the newline
        with the newline, the other containing the string after the newline
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> {(,)}}
name: Info
 splitByLine
precedence: Info
 no precedence defined
result-values: Info
 {(,)}
signature: Info
 String -> (String, String)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 possibly non-reducible on same data term