A selection of general-utility scalar and list subroutines