{"action":"closed","issue":{"url":"https://api.github.com/repos/SciRuby/daru/issues/158","repository_url":"https://api.github.com/repos/SciRuby/daru","labels_url":"https://api.github.com/repos/SciRuby/daru/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/SciRuby/daru/issues/158/comments","events_url":"https://api.github.com/repos/SciRuby/daru/issues/158/events","html_url":"https://github.com/SciRuby/daru/issues/158","id":158521947,"number":158,"title":"provide min/max with blocks","user":{"login":"lokeshh","id":7677524,"avatar_url":"https://avatars0.githubusercontent.com/u/7677524?v=3","gravatar_id":"","url":"https://api.github.com/users/lokeshh","html_url":"https://github.com/lokeshh","followers_url":"https://api.github.com/users/lokeshh/followers","following_url":"https://api.github.com/users/lokeshh/following{/other_user}","gists_url":"https://api.github.com/users/lokeshh/gists{/gist_id}","starred_url":"https://api.github.com/users/lokeshh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokeshh/subscriptions","organizations_url":"https://api.github.com/users/lokeshh/orgs","repos_url":"https://api.github.com/users/lokeshh/repos","events_url":"https://api.github.com/users/lokeshh/events{/privacy}","received_events_url":"https://api.github.com/users/lokeshh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-04T20:13:43Z","updated_at":"2017-04-07T18:16:21Z","closed_at":"2017-04-07T18:16:21Z","body":"`Daru::Vector#max` doesn't accept a block currently. For example with `Array#max` one can do:\n\n``` ruby\n>> dv = Daru::Vector.new ['c', 'bb', 'aaa']\n>> dv.max { |i| i.length }\n=> \"c\"     # Wrong because it hasn't been implemented yet\n>> ['c', 'bb', 'aaa'].max { |i| i.length }\n=> \"aaa\"\n\n```\n"}}
{"actor":{"display_login":"v0dro"}}