List myList = [1,2,3,4,5]; bool result = myList.remove(2); print(myList); // [1, 3, 4, 5] print(result); // true print(myList.length); // 4