SourceForge.net Logo

Euphoria Standard Library
(ESL)

Home Page | Project Status | Contribute | Guidelines and Information



Euphoria Standard Library module:

filter.e



1. Introduction


A bunch of useful routines that use routine ids to functions to manipulate or access elements from sequences. These routines might be moved to seqops.e.



2. Routines

filter_extract, filter_find_all, find_all_filter

Syntax: s = filter_extract(s, rid)
Description: Runs the function pointed to by rid for every element on s and returns a sequence containting all the elements the ones where it returns TRUE (1).
Status: PROPOSED


filter_find, find_filter

Syntax: s = filter_find(s, rid)
Description: Runs the function pointed to by rid for every element on s and returns the index of the first one where it returns TRUE (1).
Status: PROPOSED


filter_remove, remove_filter

Syntax: s = filter_remove(s, rid, x2)
Description: Runs the function pointed to by rid for every element on s and the ones where it returns TRUE (1) it replaces that element with x.
Status: PROPOSED


filter_replace, replace_filter

Syntax: s = filter_replace(s, rid, x2)
Description: Runs the function pointed to by rid for every element on s and the ones where it returns TRUE (1) it replaces that element with x.
Status: PROPOSED