Re: [Haskell-cafe] Thompson's Exercise 9.13

2005-04-16 Thread Kaoru Hosokawa
On 2005/04/16, at 12:57, Hamilton Richards wrote: At 10:50 AM +0900 2005/4/16, Kaoru Hosokawa wrote: My solution based on Bernie's solution: init :: [a] - [a] init xs = foldr (left (length xs)) xs xs left :: Int - a - [a] - [a] left n x xs | n == length xs = [] | otherwise = x : xs

[Haskell-cafe] Thompson's Exercise 9.13

2005-04-10 Thread Kaoru Hosokawa
that works for Strings, but I am looking for a more general solution. This exercise may yet again be one of those that is difficult to solve with my current knowledge of Haskell, but I'm asking anyway. -- Kaoru Hosokawa [EMAIL PROTECTED] ___ Haskell-Cafe

[Haskell-cafe] Re: Solution to Thompson's Exercise 4.4

2005-03-12 Thread Kaoru Hosokawa
, but didn't work for howManyOfFourEqual 4 4 2 2 = 3 Anyway the approach was similar to mine, and if I use isEqual I could get a simpler solution. Thanks again. -- Kaoru Hosokawa [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] Solution to Thompson's Exercise 4.4

2005-03-11 Thread Kaoru Hosokawa
| otherwise = 2 I hope to find a better solution. I googled but couldn't find the answer. Kaoru Hosokawa [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Must be a FAQ - Can't make install Hugs98-Nov2003 on MacOSX 10.3.8

2005-02-25 Thread Kaoru Hosokawa
`goto' machine.c:1791: syntax error, missing `;' after `*' machine.c:1814: illegal statement, missing `identifier' after `goto' machine.c:1814: syntax error, missing `;' after `*' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode ... What should I do? Thanks. Kaoru