SlideShare a Scribd company logo
1 of 1
Download to read offline
WRITE IN SML
1.Write a function named split that takes as an argument a two-tuple that consists of a list and a
pivot value), and returns a two-tuple that contains two lists. The first list is composed of all the
elements in the original list that are strictly less than the pivot value. The second list returned is
composed of all the elements that are greater than or equal to the pivot value. The type of this
function is fn : int list * int -> int list * int list

More Related Content

More from AARVEEKNITWEAR

X Most sensory neurons belong to what structural type of neurons- Sele.pdf
X Most sensory neurons belong to what structural type of neurons- Sele.pdfX Most sensory neurons belong to what structural type of neurons- Sele.pdf
X Most sensory neurons belong to what structural type of neurons- Sele.pdfAARVEEKNITWEAR
 
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdfx This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdfAARVEEKNITWEAR
 
X is a discrete random variable with probability density function f gi.pdf
X is a discrete random variable with probability density function f gi.pdfX is a discrete random variable with probability density function f gi.pdf
X is a discrete random variable with probability density function f gi.pdfAARVEEKNITWEAR
 
X and Y are independently distributed random variables- The marginal d (1).pdf
X and Y are independently distributed random variables- The marginal d (1).pdfX and Y are independently distributed random variables- The marginal d (1).pdf
X and Y are independently distributed random variables- The marginal d (1).pdfAARVEEKNITWEAR
 
X 3- What gets printed- 14.pdf
X 3- What gets printed- 14.pdfX 3- What gets printed- 14.pdf
X 3- What gets printed- 14.pdfAARVEEKNITWEAR
 
x AutoSave Ooff File for Midterm - Excel File Home Insert Draw Page L.pdf
x AutoSave Ooff  File for Midterm - Excel File Home Insert Draw Page L.pdfx AutoSave Ooff  File for Midterm - Excel File Home Insert Draw Page L.pdf
x AutoSave Ooff File for Midterm - Excel File Home Insert Draw Page L.pdfAARVEEKNITWEAR
 
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdf
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdfWynn Farms reported a net operating loss of $195-000 for financial rep.pdf
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdfAARVEEKNITWEAR
 
Writing the Meanings of Word Parts Write the meanings of the following.pdf
Writing the Meanings of Word Parts Write the meanings of the following.pdfWriting the Meanings of Word Parts Write the meanings of the following.pdf
Writing the Meanings of Word Parts Write the meanings of the following.pdfAARVEEKNITWEAR
 
Write your standard C++ codes to do the following (for class both inte.pdf
Write your standard C++ codes to do the following (for class both inte.pdfWrite your standard C++ codes to do the following (for class both inte.pdf
Write your standard C++ codes to do the following (for class both inte.pdfAARVEEKNITWEAR
 
Write the SQL code to generate the total hours worked and the total ch.pdf
Write the SQL code to generate the total hours worked and the total ch.pdfWrite the SQL code to generate the total hours worked and the total ch.pdf
Write the SQL code to generate the total hours worked and the total ch.pdfAARVEEKNITWEAR
 
Write the pseudocode snippet to declare and initialise the following a.pdf
Write the pseudocode snippet to declare and initialise the following a.pdfWrite the pseudocode snippet to declare and initialise the following a.pdf
Write the pseudocode snippet to declare and initialise the following a.pdfAARVEEKNITWEAR
 
Write the java statement that should appear after the comments- (After.pdf
Write the java statement that should appear after the comments- (After.pdfWrite the java statement that should appear after the comments- (After.pdf
Write the java statement that should appear after the comments- (After.pdfAARVEEKNITWEAR
 
Write the jOuery mathods that attsched to event handler funotions to a.pdf
Write the jOuery mathods that attsched to event handler funotions to a.pdfWrite the jOuery mathods that attsched to event handler funotions to a.pdf
Write the jOuery mathods that attsched to event handler funotions to a.pdfAARVEEKNITWEAR
 
Write the following method in the class BinaryTree-1) int numberOfLea.pdf
Write the following method in the class BinaryTree-1)  int numberOfLea.pdfWrite the following method in the class BinaryTree-1)  int numberOfLea.pdf
Write the following method in the class BinaryTree-1) int numberOfLea.pdfAARVEEKNITWEAR
 
Write Python code that takes as input two positive integers greater th.pdf
Write Python code that takes as input two positive integers greater th.pdfWrite Python code that takes as input two positive integers greater th.pdf
Write Python code that takes as input two positive integers greater th.pdfAARVEEKNITWEAR
 
write program in python Write a program to add two lists index-wise-.pdf
write program in python  Write a program to add two lists index-wise-.pdfwrite program in python  Write a program to add two lists index-wise-.pdf
write program in python Write a program to add two lists index-wise-.pdfAARVEEKNITWEAR
 
Write just a method named get Hea I thndvice () that has a parameter f.pdf
Write just a method named get Hea I thndvice () that has a parameter f.pdfWrite just a method named get Hea I thndvice () that has a parameter f.pdf
Write just a method named get Hea I thndvice () that has a parameter f.pdfAARVEEKNITWEAR
 
write long note on The Metaverse and your destination (Italy) Describe.pdf
write long note on The Metaverse and your destination (Italy) Describe.pdfwrite long note on The Metaverse and your destination (Italy) Describe.pdf
write long note on The Metaverse and your destination (Italy) Describe.pdfAARVEEKNITWEAR
 
Write in Python Language- 2- (20 points) Write a Python code for solvi.pdf
Write in Python Language- 2- (20 points) Write a Python code for solvi.pdfWrite in Python Language- 2- (20 points) Write a Python code for solvi.pdf
Write in Python Language- 2- (20 points) Write a Python code for solvi.pdfAARVEEKNITWEAR
 
Write a Python program to Create the following lists- - name - --Ali -.pdf
Write a Python program to Create the following lists- - name - --Ali -.pdfWrite a Python program to Create the following lists- - name - --Ali -.pdf
Write a Python program to Create the following lists- - name - --Ali -.pdfAARVEEKNITWEAR
 

More from AARVEEKNITWEAR (20)

X Most sensory neurons belong to what structural type of neurons- Sele.pdf
X Most sensory neurons belong to what structural type of neurons- Sele.pdfX Most sensory neurons belong to what structural type of neurons- Sele.pdf
X Most sensory neurons belong to what structural type of neurons- Sele.pdf
 
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdfx This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
 
X is a discrete random variable with probability density function f gi.pdf
X is a discrete random variable with probability density function f gi.pdfX is a discrete random variable with probability density function f gi.pdf
X is a discrete random variable with probability density function f gi.pdf
 
X and Y are independently distributed random variables- The marginal d (1).pdf
X and Y are independently distributed random variables- The marginal d (1).pdfX and Y are independently distributed random variables- The marginal d (1).pdf
X and Y are independently distributed random variables- The marginal d (1).pdf
 
X 3- What gets printed- 14.pdf
X 3- What gets printed- 14.pdfX 3- What gets printed- 14.pdf
X 3- What gets printed- 14.pdf
 
x AutoSave Ooff File for Midterm - Excel File Home Insert Draw Page L.pdf
x AutoSave Ooff  File for Midterm - Excel File Home Insert Draw Page L.pdfx AutoSave Ooff  File for Midterm - Excel File Home Insert Draw Page L.pdf
x AutoSave Ooff File for Midterm - Excel File Home Insert Draw Page L.pdf
 
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdf
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdfWynn Farms reported a net operating loss of $195-000 for financial rep.pdf
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdf
 
Writing the Meanings of Word Parts Write the meanings of the following.pdf
Writing the Meanings of Word Parts Write the meanings of the following.pdfWriting the Meanings of Word Parts Write the meanings of the following.pdf
Writing the Meanings of Word Parts Write the meanings of the following.pdf
 
Write your standard C++ codes to do the following (for class both inte.pdf
Write your standard C++ codes to do the following (for class both inte.pdfWrite your standard C++ codes to do the following (for class both inte.pdf
Write your standard C++ codes to do the following (for class both inte.pdf
 
Write the SQL code to generate the total hours worked and the total ch.pdf
Write the SQL code to generate the total hours worked and the total ch.pdfWrite the SQL code to generate the total hours worked and the total ch.pdf
Write the SQL code to generate the total hours worked and the total ch.pdf
 
Write the pseudocode snippet to declare and initialise the following a.pdf
Write the pseudocode snippet to declare and initialise the following a.pdfWrite the pseudocode snippet to declare and initialise the following a.pdf
Write the pseudocode snippet to declare and initialise the following a.pdf
 
Write the java statement that should appear after the comments- (After.pdf
Write the java statement that should appear after the comments- (After.pdfWrite the java statement that should appear after the comments- (After.pdf
Write the java statement that should appear after the comments- (After.pdf
 
Write the jOuery mathods that attsched to event handler funotions to a.pdf
Write the jOuery mathods that attsched to event handler funotions to a.pdfWrite the jOuery mathods that attsched to event handler funotions to a.pdf
Write the jOuery mathods that attsched to event handler funotions to a.pdf
 
Write the following method in the class BinaryTree-1) int numberOfLea.pdf
Write the following method in the class BinaryTree-1)  int numberOfLea.pdfWrite the following method in the class BinaryTree-1)  int numberOfLea.pdf
Write the following method in the class BinaryTree-1) int numberOfLea.pdf
 
Write Python code that takes as input two positive integers greater th.pdf
Write Python code that takes as input two positive integers greater th.pdfWrite Python code that takes as input two positive integers greater th.pdf
Write Python code that takes as input two positive integers greater th.pdf
 
write program in python Write a program to add two lists index-wise-.pdf
write program in python  Write a program to add two lists index-wise-.pdfwrite program in python  Write a program to add two lists index-wise-.pdf
write program in python Write a program to add two lists index-wise-.pdf
 
Write just a method named get Hea I thndvice () that has a parameter f.pdf
Write just a method named get Hea I thndvice () that has a parameter f.pdfWrite just a method named get Hea I thndvice () that has a parameter f.pdf
Write just a method named get Hea I thndvice () that has a parameter f.pdf
 
write long note on The Metaverse and your destination (Italy) Describe.pdf
write long note on The Metaverse and your destination (Italy) Describe.pdfwrite long note on The Metaverse and your destination (Italy) Describe.pdf
write long note on The Metaverse and your destination (Italy) Describe.pdf
 
Write in Python Language- 2- (20 points) Write a Python code for solvi.pdf
Write in Python Language- 2- (20 points) Write a Python code for solvi.pdfWrite in Python Language- 2- (20 points) Write a Python code for solvi.pdf
Write in Python Language- 2- (20 points) Write a Python code for solvi.pdf
 
Write a Python program to Create the following lists- - name - --Ali -.pdf
Write a Python program to Create the following lists- - name - --Ali -.pdfWrite a Python program to Create the following lists- - name - --Ali -.pdf
Write a Python program to Create the following lists- - name - --Ali -.pdf
 

Recently uploaded

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 

Recently uploaded (20)

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

WRITE IN SML 1-Write a function named split that takes as an argument.pdf

  • 1. WRITE IN SML 1.Write a function named split that takes as an argument a two-tuple that consists of a list and a pivot value), and returns a two-tuple that contains two lists. The first list is composed of all the elements in the original list that are strictly less than the pivot value. The second list returned is composed of all the elements that are greater than or equal to the pivot value. The type of this function is fn : int list * int -> int list * int list