Question: Write Functions in ML to do the following: - Return the third element of a list of length size 3. - Given a list, return

Write Functions in ML to do the following:

- Return the third element of a list of length size 3.

- Given a list, return the list with the 2nd element deleted.

-Given 3 integers, produce a pair consisting of the smallest and largest using nested if.

- Duplicate each element of a list. Ex: 1,2,3 --> 1,1,2,2,3,3

- We use lists of reals to represent polynomials by their coefficients, lowest degree first. Implement a function that multiplies two polynomials.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!