Question
in ml language or sml
Exercise 14 Write a function maxpairs of type (int * int) list -> int lise that takes a list of pairs of integers and returns
0 0
Add a comment Improve this question Transcribed image text
Answer #1
 fun rm x = filter (fn a=> a
x); val mx = reduce max ~1000000; fun sq (x:int list) = zip (op * ) x x; fun rprime x = filter (fn i => i mod x 
0); fun sieve nil = nil | sieve(h::t) = h::sieve(rprime h t);
Add a comment
Know the answer?
Add Answer to:
in ml language or sml Exercise 14 Write a function maxpairs of type (int * int)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT