have to write funcions in haskell

Dokončeno Zveřejněno před 3 lety K zaplacení v momentě doručení
Dokončeno K zaplacení v momentě doručení

1. revDiv, which takes two numbers, x and y, and does a division in reverse,

i.e. y/x

2. revDiv', which is the same as revDiv except using integer division.

3. evens, which takes an integer and returns the list of all equal or lesser

positive even numbers.

Haskell

Identifikační číslo projektu: #27455866

O projektu

4 nabídek Projekt na dálku Aktivní před 3 lety

Uděleno uživateli:

henrylaxen

If this is really the entire problem it is too trivial to charge money for. Here is the solution: revDiv :: Fractional a => a -> a -> a revDiv x y = y / x revDivInt :: Integral a => a -> a -> a revDivInt x y = y `di Další

$10 CAD za 1 den
(13 recenzí)
3.6

4 Freelnceři na tento projekt zveřejňují nabídky v průměru $25

FariasFernando

Hello! I can do what you ask in a while. I have a good understanding of Haskell since it is one of the languages we use in college (I am a computer science student).

$20 CAD za 1 den
(0 Recenzí)
1.6
rollyarnaudo

Hi. I can help you with this project. I'm happy to do with and I'll provide well structured code and comments for you to follow. The second example I can do with a few strategies, using list comprehension, recursion, e Další

$20 CAD za 7 dní
(0 Recenzí)
0.0