functional

functional

Not enough ratings
Partition
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
395.000 B
29 Dec, 2024 @ 6:10am
1 Change Note ( view )

Subscribe to download
Partition

Description
Write a function PARTITION that takes a list L and a function F, and reduces to a pair (P, Q), where:
- P is the sublist of elements of L for which F returns TRUE,
- Q is the sublist of elements of L for which F returns FALSE.