language agnostic - Delete and return in a single verb? -


imagine function deletes cookie , returns value.

what call if have use single verb?

i called clear i'm not fond of name.

it sounds similar pop, except pop typically acts on last element in collection. perhaps extract suitable name?


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -