Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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) Edit: More
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)
Edit: More clear to read image given below
sincerely..
Wiite the following MiL 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 Ist. If the first list is shorter than the second ist, return nil. Sample Rur: delsI2,5,1,8), [4,3]); re are 2 etaments in the second tst, so delkte 2 elements val it [1,81 : int list dels([2,S], [4,5,3]); st i shorter so retum n al it- [ int list 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 multiple of 10. The function should return a list which contains the digits of their product. Sample Run: it- ts,3,2,e,e,e1 int list 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 Newiersey standard ML compiler from the following addresses: - Type your program in any word processing software iNotepad, WordPad, Word, etc) and save it as a text file. Copy the written functiona, and paste it onto the ML compler screen using the menu tEdit-Paste) which appears when you right clck on top of the screen. Test your functions using the compler, and co o ns orogram You cenesit with CurlZ Wiite the following MiL 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 Ist. If the first list is shorter than the second ist, return nil. Sample Rur: delsI2,5,1,8), [4,3]); re are 2 etaments in the second tst, so delkte 2 elements val it [1,81 : int list dels([2,S], [4,5,3]); st i shorter so retum n al it- [ int list 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 multiple of 10. The function should return a list which contains the digits of their product. Sample Run: it- ts,3,2,e,e,e1 int list 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 Newiersey standard ML compiler from the following addresses: - Type your program in any word processing software iNotepad, WordPad, Word, etc) and save it as a text file. Copy the written functiona, and paste it onto the ML compler screen using the menu tEdit-Paste) which appears when you right clck on top of the screen. Test your functions using the compler, and co o ns orogram You cenesit with CurlZStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started