tail function

List tail(
  1. List list
)

Implementation

List tail(List list) {
  try {
    return list.sublist(1);
  } catch (e) {
    return [];
  }
}