tlist_remove_if_not

Description

Method tlist_remove_if_not:TList (
     inputList:TList,
     fn:function:Byte(o:Object)
)

Remove elements from a linked list if they do not pass the test in fn.

Description

Parameters

inputList

The list to filter.

fn

Callback function that should take a single element.

Return Values

A new array containing filtered elements from inputArray