filter function

List filter(
  1. List list,
  2. dynamic fn(
    1. dynamic e
    )
)

Implementation

List filter(List list, dynamic Function(dynamic e) fn) => list.where((x) => truthy(fn(x))).toList();