Skip to content

Instantly share code, notes, and snippets.

@meditans
Created November 12, 2015 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meditans/05501d38f15b118d4529 to your computer and use it in GitHub Desktop.
Save meditans/05501d38f15b118d4529 to your computer and use it in GitHub Desktop.
inverseMap grid f i = valueAtI
where iGrid = iover (itraversed <.> itraversed) const grid
valueAtI = (f iGrid) ^?! (itraversed <.> itraversed) . index i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment