Paritition a list into two lists based on the reuslts of a binary function.
1 | partition(xs, f)
|
xs |
list. The list to partition. |
f |
function. A function that returns TRUE or FALSE for each element into the list, determining which partition each element ends up in. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.