[login to view URL] a function count_odds that produces the number of odds in a list of numbers. For example, count_odds [1,2,3,4,7,8] should return 3.
2. Write a function remove_last_two that removes the last two elements in a list. If the list contains two or less elements, then it should return the list unchanged. For example, remove_last [1,2,3,4,5,6] should return [1,2,3,4].
3. Using library functions, define a function halve :: [a ] → ([a ], [a ]) that splits an even-length list into two halves. For example, halve [1, 2, 3, 4, 5, 6] should return ([1, 2, 3], [4, 5, 6]).
4. Write a function min_max that takes a list of numbers and returns the minimum, as well as the maximum element in the list as a pair. For example, min_max [4,3,6,5,9,10,8] should return (3,10) as the answer.
5. Redefine the function mult x y z = x * y * z using lambda expressions.
6. Write a function primes_before that takes a natural number n and returns in a list the prime numbers that are smaller than n. For example, primes_before 10 should return [2,3,5,7].
7. Write a function sum_average_count that takes a list of numbers and returns as a triple the sum, average and count of the numbers. For example, sum_average_count [2,4,12] should return (18,6,3).
8. Write a function to_list that takes a tuple of three components and returns the list of those components. For example, to_list (3,4,5) should return [3,4,5].
Hi I have been learning Haskell and employing standard numerical algorithms on Haskell to test its functional paradigms out of interest for its prospects in my new projects . During my explorations I have come across situations like yours and I'm sure I can get your job done within the time I have stated. You may consider me please. Thanks
I have done Haskell in University and got a first for my assignments which one of them included a full game with Haskell.
I would be Great for this project as I do this with my friends who also program for a passion and we enjoy these sort of projects.
hi sir,
I am experience with haskell .
I would like to do this task.
I have experience with list in haskell and tail recursion .
looking for your reply
Hello,
I am not that skilled in Haskell but in Common Lisp and Racket.
These functions are makable for me. Looking a little into Haskell, I could transfer that knowledge into Haskell functions, too.
What do you think?
Hello, I have am master student of computer science and I work as developper also. I like it to write some code in Haskell and can accomplish your work very well. Hire me for your work to be done well at low cost.
Hello. I am a Haskell programmer from academia. I developed various Haskell programs including monadic ones in several projects. I understand that the project is about simple list processing. I ensure that I can complete all the functions within one day.
Hello, if the project still active I can help you with. I am a software developer with about 20 years of experience.
One of my favorite software languages is haskell. You will get the result withing 2 or 3 days.
Best wishes,
Vlad