[Solved] CSE341 Homerwork0 Common Lisp programming practice

$25

File Name: CSE341_Homerwork0__Common_Lisp_programming_practice.zip
File Size: 480.42 KB

SKU: [Solved] CSE341 Homerwork0 – Common Lisp programming practice Category: Tag:
5/5 - (1 vote)

This homework is about Common Lisp programming practice. Thus, you must write all the following parts in Common Lisp. You can write as many auxiliary functions as you want.

General Restriction: All your functions must be recursive. In other words, you are not allowed to use iteration.

Part 1: You must write a function called list-leveller. List-leveller function takes a (nested) list as an input and converts the input (nested) list to a list which does not contain any list(s).

Part 2: You must write a function called merge-list. Merge-list function takes two lists as inputs and merges the lists. Output must be a list.

Part 2 Restriction: You are not allowed to use append function for this part.

Part 3: Write a function called insert-n which takes a list, a number and an index as inputs, then inserts the number to the specified index in the list. Note that the i-th value in original list should not be overwritten

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSE341 Homerwork0 Common Lisp programming practice
$25