Question: yb1)Could you please solve this problem? The programming language that is wanted in solution is ML (ML is Meta Language). Meta Language: https://en.wikipedia.org/wiki/ML_(programming_language) sincerely.. Write

yb1)Could you please solve this problem? The programming language that is wanted in solution is ML (ML is Meta Language). Meta Language: https://en.wikipedia.org/wiki/ML_(programming_language)

yb1)Could you please solve this problem? The programming language that is wanted

sincerely..

Write the following ML functions: a) Write a function that takes two lists as parameter and deletes from the front of the first list as many elements as there are in the second list. If the first list is shorter than the second list, return nil. Sample Run: - dels([2,5,1,8], [4,3]) there are 2 elements in the second list, so delete 2 elements ll from the first list val it = [1,8] : int list -dels( [2,5],[4, 5, 3]); #first list is val it = [] : int list shorter so relurn nil b) Assuming that an int list contains the digits of an integer, write a function which takes this list as a parameter as well as an integer which is a power of 10. The function should return a list which contains the digits of their product. Sample Run: -mult ( [ 5, 3,21,1000); /multiply 532 by 1000 val it-[5,3,2,0,0,0] : int Note: Write only one function for each part, and do not call any other functions To edit and execute your ML program, do the following Download the NewJersey Standard ML compiler from the following addresses: o Type your program in any word processing software (Notepad WordPad, Word, etc.) and save it as a text file. Copy the written functions, and paste it onto the ML compiler screen using the menu (Edit-Paste) which appears when you right click on top of the screen. Test your functions using the compiler and correct any errors from the word processing program. You can exit with Ctrl/Z. O

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!