stedolan/jq — pull request #155 by nicowilliams (2013-06-18 01:54:04+00:00)
Title: Mod, setmod and floor operators

Say you have an array with keys and values, like this [key, value, value, key, ...] and you want to get back an object {key: [, ...}. It helps to be able to perform modulo operations. While we're at it, let's add a floor operator as well.