If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

There's no such way in Haskell because there's no way of telling what "the last result" is. Haskell programs are executed in the order necessary, not the order you set them out in the source file. There may be a way to do it in your command-line interpreter, however.

I need help quickly please. I got one problem to solve in Haskell, not very
hard but I don't know anything about Haskell programming language so I must
ask for help here and hope for (positive) answer.

So, the question goes like this:
Write function in Haskell which delete every member of a list that is bigger
then the member after him. Test function on list of Integers and on list of
Doubles.

You may use your own functions for help but you may not use functions from
extra Haskell libraries.

Hint: Split your function into two functions. The first one would be the one that the coder uses on a regular basis. The second would be the one that the first function uses behind the scenes for help (called a helper function).

I'll give you some of the code. Try filling in the rest (in the ... parts).