Helper functions for Data.Array API will be unstable until version 1.0.0 Please post suggestions and requests on the github repository Todo: functions could be faster by using Data.Array.ST