Time remaining:
Lisp sublist

label Programming
account_circle Unassigned
schedule 0 Hours
account_balance_wallet $5


Using Lisp write a simple pattern matching program. Define a sublist function that takes two lists as arguments. It will return true (T) and all sublist indices if the first list appears as a contiguous sub list somewhere within the second list, and false (f) otherwise.

For example: (sublist '(c d e) '(a b c d e c d e f g)) ==> T 2 5 

             (sublist '(a c e) '(a b c d e f g)) ==> F 

             (sublist '(f) '(a b c d e f g)) ==> T 5


Nov 9th, 2013
i can help
Nov 9th, 2013

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Nov 9th, 2013
...
Nov 9th, 2013
Jun 25th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer