{"action":"created","issue":{"url":"https://api.github.com/repos/sass/sass/issues/1913","labels_url":"https://api.github.com/repos/sass/sass/issues/1913/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/1913/comments","events_url":"https://api.github.com/repos/sass/sass/issues/1913/events","html_url":"https://github.com/sass/sass/issues/1913","id":118856681,"number":1913,"title":"Allow min() and max() to accept lists","user":{"login":"scottkellum","id":377189,"avatar_url":"https://avatars.githubusercontent.com/u/377189?v=3","gravatar_id":"","url":"https://api.github.com/users/scottkellum","html_url":"https://github.com/scottkellum","followers_url":"https://api.github.com/users/scottkellum/followers","following_url":"https://api.github.com/users/scottkellum/following{/other_user}","gists_url":"https://api.github.com/users/scottkellum/gists{/gist_id}","starred_url":"https://api.github.com/users/scottkellum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottkellum/subscriptions","organizations_url":"https://api.github.com/users/scottkellum/orgs","repos_url":"https://api.github.com/users/scottkellum/repos","events_url":"https://api.github.com/users/scottkellum/events{/privacy}","received_events_url":"https://api.github.com/users/scottkellum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-25T15:11:37Z","updated_at":"2015-11-28T03:02:41Z","closed_at":null,"body":"Currently `min()` and `max()` only accept arguments. However this can be confusing as arguments are formatted the same way as a list.\r\n\r\nAs a result I expected `min()` and `max()` to take lists in variable form like `min($list)` but this throws an error. While `min($list...)` works in Ruby Sass (LibSass has a bug with passing arguments in as `...`) it would be more clear to have these functions parse lists instead of arguments."},"comment":{"url":"https://api.github.com/repos/sass/sass/issues/comments/160242857","html_url":"https://github.com/sass/sass/issues/1913#issuecomment-160242857","issue_url":"https://api.github.com/repos/sass/sass/issues/1913","id":160242857,"user":{"login":"davidkpiano","id":1093738,"avatar_url":"https://avatars.githubusercontent.com/u/1093738?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkpiano","html_url":"https://github.com/davidkpiano","followers_url":"https://api.github.com/users/davidkpiano/followers","following_url":"https://api.github.com/users/davidkpiano/following{/other_user}","gists_url":"https://api.github.com/users/davidkpiano/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkpiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkpiano/subscriptions","organizations_url":"https://api.github.com/users/davidkpiano/orgs","repos_url":"https://api.github.com/users/davidkpiano/repos","events_url":"https://api.github.com/users/davidkpiano/events{/privacy}","received_events_url":"https://api.github.com/users/davidkpiano/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T03:02:41Z","updated_at":"2015-11-28T03:02:41Z","body":"This probably doesn't help, but you can do this [in Sassdash](http://davidkpiano.github.io/sassdash/sassdoc/index.html#function-_min): `_min($list);` (returns 6)\r\n\r\nJust for comparison:\r\n- JS: `Math.min(1, 2, 3)` accepts multiple arguments, not an array/list\r\n- Ruby: `[1,2,3].min` not a function but accepts a list\r\n- Python: `min(1, 2, 3)` also accepts multiple args but not an array/list\r\n\r\nI think it's pretty standard to do this by multiple arguments, and not by passing in an array. Though I could see a `list-min($list)` function being useful."}}