Function version of g_adjust

Issue #202 new
David Dickinson created an issue

In some places we want to g_adjust in one direction but not back again. To do this we either need to copy g to a temporary and then adjust that, or to adjust g and then back again when we’re done. Both of these are slightly wasteful.

If we provided a function version then we should be able to avoid this. The subroutine version could be implemented in terms of this function to avoid duplication.

Comments (0)

  1. Log in to comment