{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/1200","labels_url":"https://api.github.com/repos/ramda/ramda/issues/1200/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1200/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/1200/events","html_url":"https://github.com/ramda/ramda/issues/1200","id":89222706,"number":1200,"title":"R.takeLast and R.dropLast","user":{"login":"davidchambers","id":210406,"avatar_url":"https://avatars.githubusercontent.com/u/210406?v=3","gravatar_id":"","url":"https://api.github.com/users/davidchambers","html_url":"https://github.com/davidchambers","followers_url":"https://api.github.com/users/davidchambers/followers","following_url":"https://api.github.com/users/davidchambers/following{/other_user}","gists_url":"https://api.github.com/users/davidchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchambers/subscriptions","organizations_url":"https://api.github.com/users/davidchambers/orgs","repos_url":"https://api.github.com/users/davidchambers/repos","events_url":"https://api.github.com/users/davidchambers/events{/privacy}","received_events_url":"https://api.github.com/users/davidchambers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ramda/ramda/labels/proposal","name":"proposal","color":"66cc66"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-06-18T07:38:25Z","updated_at":"2015-07-09T17:54:27Z","closed_at":null,"body":"@asaf-romano and I formulated this idea on Gitter:\r\n\r\n```javascript\r\n             [ 1 , 2 , 3 , 4 , 5 , 6 , 7 ]\r\n\r\n       head    1\r\n       tail      [ 2 , 3 , 4 , 5 , 6 , 7 ]\r\n       last                            7\r\n       init  [ 1 , 2 , 3 , 4 , 5 , 6 ]\r\n    take(2)  [ 1 , 2 ]\r\n    drop(2)          [ 3 , 4 , 5 , 6 , 7 ]\r\n\r\ntakeLast(2)                      [ 6 , 7 ]\r\ndropLast(2)  [ 1 , 2 , 3 , 4 , 5 ]\r\n```\r\n\r\nThese last two functions seem useful. Currently one must use the rather ugly `R.slice(-2, Infinity)`; `R.takeLast(2)` would be nicer.\r\n"},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/120086397","html_url":"https://github.com/ramda/ramda/issues/1200#issuecomment-120086397","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1200","id":120086397,"user":{"login":"CrossEye","id":151263,"avatar_url":"https://avatars.githubusercontent.com/u/151263?v=3","gravatar_id":"","url":"https://api.github.com/users/CrossEye","html_url":"https://github.com/CrossEye","followers_url":"https://api.github.com/users/CrossEye/followers","following_url":"https://api.github.com/users/CrossEye/following{/other_user}","gists_url":"https://api.github.com/users/CrossEye/gists{/gist_id}","starred_url":"https://api.github.com/users/CrossEye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrossEye/subscriptions","organizations_url":"https://api.github.com/users/CrossEye/orgs","repos_url":"https://api.github.com/users/CrossEye/repos","events_url":"https://api.github.com/users/CrossEye/events{/privacy}","received_events_url":"https://api.github.com/users/CrossEye/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T17:54:27Z","updated_at":"2015-07-09T17:54:27Z","body":"> I can. Are take/dropLastpWhile on the table too?\r\n\r\nMight as well."}}