funs
funs copied to clipboard
modify_vector()
A vector version of modifyList() function would be very handy for, e.g., combining default http request headers with user-specified ones, where user-specified headers should trump the defaults. This is somewhat related to keep_last(), seen (twice, in fact!) in httr's utils.R, which might also be useful.
It feels like you'd usually use this when programming, right? So rlang might be a better home for it?