Php Delete First In Array Python Methods On Tuples In Typescript