module Data.Array.Comfort.Shape.Utility where

import Text.Printf (printf)


errorIndexFromOffset :: String -> Int -> a
errorIndexFromOffset name k =
   error $ printf "indexFromOffset (%s): index %d out of range" name k