I want to create program, that sort list of numbers by oddity (odds first, then
evens).
I create testing.prj and testing.icl, then write:
import StdOrdList
oddity a b = compare (mod a 2) (mod b 2)
sortByOddity = sortBy oddity
main = sortByOddity [ 1, 2 .. 10 ]
And got error: Error: No application to run, you must bring the project up to
date.
What I am doing wrong? By the way, I downloaded CleanBookI.pdf but,
nevertheless, experience serious difficulties due to lack of information and
examples. Enough to google a question about Haskell, and I get at least one,
and often several answers. When I try to search something at your wiki, I got
message that I can not edit the page. WTF?
_______________________________________________
clean-list mailing list
[email protected]
http://mailman.science.ru.nl/mailman/listinfo/clean-list