Writing simple haskell functions!

[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].

Evner: Haskell

Se mere: writing simple php scripts, writing dll export functions, writing simple reading, writing simple dll callable vbnet, writing simple directions line design, writing simple com dll, writing simple tcp clientserver unix environment, academic writing simple, adobe acrobat simple calculation functions java script, great ways make money internet website techy skills all writing simple word articles, writing simple article, writing simple calculations adobe acrobat forms javascript, writing simple email, writing simple iphone app, writing simple j2me sending sms, writing simple keylogger windows, writing simple linked list java, writing simple manual, writing simple restful wcf web service returning json, writing simple saas application

Om arbejdsgiveren:
( 0 bedømmelser ) Canterbury, United Kingdom

Projekt ID: #21811472

3 freelancere byder i gennemsnit £96 på dette job


Hello there! I am a computer scientist with 5 years of experience in Haskell. I can help you with your task. I would love to discuss further details and I hope to hear from you soon!

£100 GBP in 3 dage
(9 bedømmelser)

hi sir, I am experience in haskell, happy to work with you. I have seen the problem and it mach my qualifications. I am experience with list in haskell

£88 GBP på 1 dag
(0 bedømmelser)

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 compl Flere

£100 GBP på 1 dag
(0 bedømmelser)