Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

Edit: More clear to read image given below

image text in transcribed

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 CurlZ

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago