{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4594","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4594/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4594/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4594/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4594","id":97781035,"number":4594,"title":"r.min(a, b) / r.max(a, b) variants","user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/tp:ReQL_proposal","name":"tp:ReQL_proposal","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/2","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/backlog","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/2/labels","id":211054,"number":2,"title":"backlog","description":"Issues in this milestone are not an immediate priority, and will be periodically revisited. When we decide to work on an issue in backlog, we'll move it to next.","creator":{"login":"coffeemug","id":48436,"avatar_url":"https://avatars.githubusercontent.com/u/48436?v=3","gravatar_id":"","url":"https://api.github.com/users/coffeemug","html_url":"https://github.com/coffeemug","followers_url":"https://api.github.com/users/coffeemug/followers","following_url":"https://api.github.com/users/coffeemug/following{/other_user}","gists_url":"https://api.github.com/users/coffeemug/gists{/gist_id}","starred_url":"https://api.github.com/users/coffeemug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffeemug/subscriptions","organizations_url":"https://api.github.com/users/coffeemug/orgs","repos_url":"https://api.github.com/users/coffeemug/repos","events_url":"https://api.github.com/users/coffeemug/events{/privacy}","received_events_url":"https://api.github.com/users/coffeemug/received_events","type":"User","site_admin":false},"open_issues":560,"closed_issues":1,"state":"open","created_at":"2012-11-11T14:16:11Z","updated_at":"2015-09-14T23:44:09Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-07-28T19:17:22Z","updated_at":"2015-09-16T02:29:11Z","closed_at":null,"body":"Currently you have to write these as\r\n```js\r\nr.expr([a, b]).min()\r\nr.expr([a, b]).max()\r\n```\r\n\r\nIt would be nice if you could just write\r\n```js\r\nr.min(a, b)\r\nr.max(a, b)\r\n```\r\n\r\nprobably these should be variadic and allow for an arbitrary number of arguments (at least 2 to distinguish them from the other case).\r\n\r\nSuggested by @weshoke"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/140606871","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4594#issuecomment-140606871","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4594","id":140606871,"user":{"login":"marshall007","id":877936,"avatar_url":"https://avatars.githubusercontent.com/u/877936?v=3","gravatar_id":"","url":"https://api.github.com/users/marshall007","html_url":"https://github.com/marshall007","followers_url":"https://api.github.com/users/marshall007/followers","following_url":"https://api.github.com/users/marshall007/following{/other_user}","gists_url":"https://api.github.com/users/marshall007/gists{/gist_id}","starred_url":"https://api.github.com/users/marshall007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marshall007/subscriptions","organizations_url":"https://api.github.com/users/marshall007/orgs","repos_url":"https://api.github.com/users/marshall007/repos","events_url":"https://api.github.com/users/marshall007/events{/privacy}","received_events_url":"https://api.github.com/users/marshall007/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T02:29:11Z","updated_at":"2015-09-16T02:29:11Z","body":"Working on a PR for this. Any reason not to include `distinct`, `sum` and `avg` terms as well?"}}