mapIntField method

Iterable<int> mapIntField(
  1. String field
)

Map array elements to the specified int field. Throws if field is null.

Implementation

Iterable<int> mapIntField(String field) sync*
{
  int l = size();
  for (int i=0; i < l; i++)
  {
    yield get(i).getRequired(field).asInt();
  }
}