Closed jamesls closed 10 years ago
Would reverse() only work on arrays? If not, would we still use array slicing to reverse strings?
I'm +1 for this.
Awesome, I'll go ahead and get this rebased off of the latest develop branch.
Yeah, I think we should make reverse() work on strings.
New PR here: https://github.com/boto/jmespath/pull/64. Closing in favor of #64.
I think these functions would be useful, but am open to hearing suggestions. I know that some of these can be accomplished with the array slicing JEP, but these arguably provide a more convenient way to do this (
foo[::-1]
vs. reverse(foo)).