SlideShare a Scribd company logo
1 of 1
Download to read offline
Code the problem in scheme. Make use you test it and follows the requirement:
0. Write the following function using call/cc and a single helper function that uses "normal"
recursion instead of tail recursion. xindex takes an atom and a list containing sublists. The output
list should be the same as the input list except that any sublist (including the main list) that
contains the given atom should be emptied of all contents (atoms, lists, etc.), and instead, the
only content of that sublist should be the index of the first occurrence of the atom in that list.

More Related Content

More from akdavinderhosiery

Click the icon to view the data for the four projects Fill in the tabl.pdf
Click the icon to view the data for the four projects Fill in the tabl.pdfClick the icon to view the data for the four projects Fill in the tabl.pdf
Click the icon to view the data for the four projects Fill in the tabl.pdfakdavinderhosiery
 
Click on the Nash Equilibria (one or more) of this game (click on the.pdf
Click on the Nash Equilibria (one or more) of this game (click on the.pdfClick on the Nash Equilibria (one or more) of this game (click on the.pdf
Click on the Nash Equilibria (one or more) of this game (click on the.pdfakdavinderhosiery
 
Click the icon to view the interest and annuity table for discrete com.pdf
Click the icon to view the interest and annuity table for discrete com.pdfClick the icon to view the interest and annuity table for discrete com.pdf
Click the icon to view the interest and annuity table for discrete com.pdfakdavinderhosiery
 
Click and drag the terms on the left to fill in the blanks in the sent (1).pdf
Click and drag the terms on the left to fill in the blanks in the sent (1).pdfClick and drag the terms on the left to fill in the blanks in the sent (1).pdf
Click and drag the terms on the left to fill in the blanks in the sent (1).pdfakdavinderhosiery
 
Click the icon to view the interest factors for discrete compounding w (1).pdf
Click the icon to view the interest factors for discrete compounding w (1).pdfClick the icon to view the interest factors for discrete compounding w (1).pdf
Click the icon to view the interest factors for discrete compounding w (1).pdfakdavinderhosiery
 
Click here to access StatKey- Round your answer for the intercept to o (1).pdf
Click here to access StatKey- Round your answer for the intercept to o (1).pdfClick here to access StatKey- Round your answer for the intercept to o (1).pdf
Click here to access StatKey- Round your answer for the intercept to o (1).pdfakdavinderhosiery
 
Classify each description according to the correct spinal cord structu.pdf
Classify each description according to the correct spinal cord structu.pdfClassify each description according to the correct spinal cord structu.pdf
Classify each description according to the correct spinal cord structu.pdfakdavinderhosiery
 
Classifying Cash Flows Identify whether each of the following would be.pdf
Classifying Cash Flows Identify whether each of the following would be.pdfClassifying Cash Flows Identify whether each of the following would be.pdf
Classifying Cash Flows Identify whether each of the following would be.pdfakdavinderhosiery
 
Classification- The following items are part of the cytoskeleton- Resp.pdf
Classification- The following items are part of the cytoskeleton- Resp.pdfClassification- The following items are part of the cytoskeleton- Resp.pdf
Classification- The following items are part of the cytoskeleton- Resp.pdfakdavinderhosiery
 
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdfClassifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdfakdavinderhosiery
 
Classification- The following items are organelles found in animal cel (1).pdf
Classification- The following items are organelles found in animal cel (1).pdfClassification- The following items are organelles found in animal cel (1).pdf
Classification- The following items are organelles found in animal cel (1).pdfakdavinderhosiery
 
Classification- The following are basic building blocks of biopolymers.pdf
Classification- The following are basic building blocks of biopolymers.pdfClassification- The following are basic building blocks of biopolymers.pdf
Classification- The following are basic building blocks of biopolymers.pdfakdavinderhosiery
 
Clara did very well on her Biology midterm- The Biology midterm scores.pdf
Clara did very well on her Biology midterm- The Biology midterm scores.pdfClara did very well on her Biology midterm- The Biology midterm scores.pdf
Clara did very well on her Biology midterm- The Biology midterm scores.pdfakdavinderhosiery
 
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdfClarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdfakdavinderhosiery
 
choose the one correct answer - 33- A good surveillance system shoul.pdf
choose the one correct answer -   33- A good surveillance system shoul.pdfchoose the one correct answer -   33- A good surveillance system shoul.pdf
choose the one correct answer - 33- A good surveillance system shoul.pdfakdavinderhosiery
 
Cladogram or phylogram- What do the colors represent- virustype SARS-.pdf
Cladogram or phylogram- What do the colors represent- virustype  SARS-.pdfCladogram or phylogram- What do the colors represent- virustype  SARS-.pdf
Cladogram or phylogram- What do the colors represent- virustype SARS-.pdfakdavinderhosiery
 
CIS105 (1-7) Build a community-area crime report showing each incident.pdf
CIS105 (1-7) Build a community-area crime report showing each incident.pdfCIS105 (1-7) Build a community-area crime report showing each incident.pdf
CIS105 (1-7) Build a community-area crime report showing each incident.pdfakdavinderhosiery
 
Circled nodes (there are two on this gene tree) represent gene duplica.pdf
Circled nodes (there are two on this gene tree) represent gene duplica.pdfCircled nodes (there are two on this gene tree) represent gene duplica.pdf
Circled nodes (there are two on this gene tree) represent gene duplica.pdfakdavinderhosiery
 
Cipher mechanics 1- monoalphabetic substitution- The small- Greek-spea.pdf
Cipher mechanics 1- monoalphabetic substitution- The small- Greek-spea.pdfCipher mechanics 1- monoalphabetic substitution- The small- Greek-spea.pdf
Cipher mechanics 1- monoalphabetic substitution- The small- Greek-spea.pdfakdavinderhosiery
 
Choose the correct statement- A- Growth in average hours per work incr.pdf
Choose the correct statement- A- Growth in average hours per work incr.pdfChoose the correct statement- A- Growth in average hours per work incr.pdf
Choose the correct statement- A- Growth in average hours per work incr.pdfakdavinderhosiery
 

More from akdavinderhosiery (20)

Click the icon to view the data for the four projects Fill in the tabl.pdf
Click the icon to view the data for the four projects Fill in the tabl.pdfClick the icon to view the data for the four projects Fill in the tabl.pdf
Click the icon to view the data for the four projects Fill in the tabl.pdf
 
Click on the Nash Equilibria (one or more) of this game (click on the.pdf
Click on the Nash Equilibria (one or more) of this game (click on the.pdfClick on the Nash Equilibria (one or more) of this game (click on the.pdf
Click on the Nash Equilibria (one or more) of this game (click on the.pdf
 
Click the icon to view the interest and annuity table for discrete com.pdf
Click the icon to view the interest and annuity table for discrete com.pdfClick the icon to view the interest and annuity table for discrete com.pdf
Click the icon to view the interest and annuity table for discrete com.pdf
 
Click and drag the terms on the left to fill in the blanks in the sent (1).pdf
Click and drag the terms on the left to fill in the blanks in the sent (1).pdfClick and drag the terms on the left to fill in the blanks in the sent (1).pdf
Click and drag the terms on the left to fill in the blanks in the sent (1).pdf
 
Click the icon to view the interest factors for discrete compounding w (1).pdf
Click the icon to view the interest factors for discrete compounding w (1).pdfClick the icon to view the interest factors for discrete compounding w (1).pdf
Click the icon to view the interest factors for discrete compounding w (1).pdf
 
Click here to access StatKey- Round your answer for the intercept to o (1).pdf
Click here to access StatKey- Round your answer for the intercept to o (1).pdfClick here to access StatKey- Round your answer for the intercept to o (1).pdf
Click here to access StatKey- Round your answer for the intercept to o (1).pdf
 
Classify each description according to the correct spinal cord structu.pdf
Classify each description according to the correct spinal cord structu.pdfClassify each description according to the correct spinal cord structu.pdf
Classify each description according to the correct spinal cord structu.pdf
 
Classifying Cash Flows Identify whether each of the following would be.pdf
Classifying Cash Flows Identify whether each of the following would be.pdfClassifying Cash Flows Identify whether each of the following would be.pdf
Classifying Cash Flows Identify whether each of the following would be.pdf
 
Classification- The following items are part of the cytoskeleton- Resp.pdf
Classification- The following items are part of the cytoskeleton- Resp.pdfClassification- The following items are part of the cytoskeleton- Resp.pdf
Classification- The following items are part of the cytoskeleton- Resp.pdf
 
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdfClassifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
 
Classification- The following items are organelles found in animal cel (1).pdf
Classification- The following items are organelles found in animal cel (1).pdfClassification- The following items are organelles found in animal cel (1).pdf
Classification- The following items are organelles found in animal cel (1).pdf
 
Classification- The following are basic building blocks of biopolymers.pdf
Classification- The following are basic building blocks of biopolymers.pdfClassification- The following are basic building blocks of biopolymers.pdf
Classification- The following are basic building blocks of biopolymers.pdf
 
Clara did very well on her Biology midterm- The Biology midterm scores.pdf
Clara did very well on her Biology midterm- The Biology midterm scores.pdfClara did very well on her Biology midterm- The Biology midterm scores.pdf
Clara did very well on her Biology midterm- The Biology midterm scores.pdf
 
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdfClarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
 
choose the one correct answer - 33- A good surveillance system shoul.pdf
choose the one correct answer -   33- A good surveillance system shoul.pdfchoose the one correct answer -   33- A good surveillance system shoul.pdf
choose the one correct answer - 33- A good surveillance system shoul.pdf
 
Cladogram or phylogram- What do the colors represent- virustype SARS-.pdf
Cladogram or phylogram- What do the colors represent- virustype  SARS-.pdfCladogram or phylogram- What do the colors represent- virustype  SARS-.pdf
Cladogram or phylogram- What do the colors represent- virustype SARS-.pdf
 
CIS105 (1-7) Build a community-area crime report showing each incident.pdf
CIS105 (1-7) Build a community-area crime report showing each incident.pdfCIS105 (1-7) Build a community-area crime report showing each incident.pdf
CIS105 (1-7) Build a community-area crime report showing each incident.pdf
 
Circled nodes (there are two on this gene tree) represent gene duplica.pdf
Circled nodes (there are two on this gene tree) represent gene duplica.pdfCircled nodes (there are two on this gene tree) represent gene duplica.pdf
Circled nodes (there are two on this gene tree) represent gene duplica.pdf
 
Cipher mechanics 1- monoalphabetic substitution- The small- Greek-spea.pdf
Cipher mechanics 1- monoalphabetic substitution- The small- Greek-spea.pdfCipher mechanics 1- monoalphabetic substitution- The small- Greek-spea.pdf
Cipher mechanics 1- monoalphabetic substitution- The small- Greek-spea.pdf
 
Choose the correct statement- A- Growth in average hours per work incr.pdf
Choose the correct statement- A- Growth in average hours per work incr.pdfChoose the correct statement- A- Growth in average hours per work incr.pdf
Choose the correct statement- A- Growth in average hours per work incr.pdf
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 

Scheme function to empty sublists containing an atom and replace with index

  • 1. Code the problem in scheme. Make use you test it and follows the requirement: 0. Write the following function using call/cc and a single helper function that uses "normal" recursion instead of tail recursion. xindex takes an atom and a list containing sublists. The output list should be the same as the input list except that any sublist (including the main list) that contains the given atom should be emptied of all contents (atoms, lists, etc.), and instead, the only content of that sublist should be the index of the first occurrence of the atom in that list.