Groups of integer-valuated functions