haskell very newbie question

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

haskell very newbie question

Post by Anonymous »

til :: [String] -> String -> String
til [] s=s
til tks@(c:t) s
|substr c s = til tks (a++B) where (a,B)=split c s (head t)
|otherwise = til (drop 2 tks) s

i don't understand why it says ...syntax error in input (unexpected |')
substr checks if c is a substring of s
i have other functions that look like this and work so i'm completly in the dark here
thx

Archived topic from Iceteks, old topic ID:3953, old post ID:32333
wtd
Posts: 157
Joined: Sat Sep 25, 2004 7:21 pm

haskell very newbie question

Post by wtd »

There are some problems with the formatting.

Could you repost this, but make sure to diable smilies, and enclose your code in code tags?

Archived topic from Iceteks, old topic ID:3953, old post ID:32510
Locked