flatten flattens a nested array. @param array the list to compare against
array
List flatten() => array.flatten(this);