added range function to array module
checking is no longer curried now returns function