ANSWER WITH ML CODE PLZ. NOT C++ 1) fun main() = let val yy = [6,4,2,0]; in print (PolyML.makestring...

90.2K

Verified Solution

Question

Programming

ANSWER WITH ML CODE PLZ. NOT C++

1)

fun main() = let
val yy = [6,4,2,0];
in print (PolyML.makestring (

***(Remove the first item from yy)******

)) end;

2)

fun main() = let
val yy = [6,4,2,0];
in print (PolyML.makestring (

***(Make a list containing only the first item of yy )***

)) end;

3)

fun main() = let
val yy = [8,6,4,2,0];
in print (PolyML.makestring (

***(Prepend 5 to the front of yy)***

)) end;

4)fun main() = let
val yy = [8,6,4];
in print (PolyML.makestring (

***(Prepend [2,5] to the front of yy )***

)) end;

5) fun main() = let
val yy = [8,6,4,2];
in print (PolyML.makestring (

***(Remove the third integer from yy )***

)) end;

Answer & Explanation Solved by verified expert
4.4 Ratings (723 Votes)
Following is the code in file fivequesm 1 fprintfn Question 1 n yy 6 4 2 0 yy1 2    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students