{ "info": { "author": "Shoma Hosaka", "author_email": "shoma.h4a+pypi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "scala collection like interface for python iterato.r\n\nIterable object:\n\n >>> from scalalike.collections import Iterable\n >>> it = Iterable(range(10))\n >>> it\n \n >>> it.to_list()\n [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n >>> it.map(lambda x:x*2).to_list()\n [0, 2, 4, 6, 8, 10, 12, 14, 16, 18]\n >>> it.filter(lambda x:x%2 == 0).to_list()\n [0, 2, 4, 6, 8]\n >>> it.filter(lambda x:x%2 == 0).map(lambda x:x*2).to_list()\n [0, 4, 8, 12, 16]\n >>> it.flatmap(lambda x: [x, x]).to_list()\n [0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9]\n >>> it.take(4).to_list()\n [0, 1, 2, 3]\n >>> it.foldleft(lambda x, y: x+y)\n 45\n\n\nMap object:\n\n >>> from scalalike.collections import Iterable\n >>> mp = Map(aa=10, bb=20)\n >>> mp\n {'aa': 10, 'bb': 20}\n >>> mp.map(lambda (k, v): (k, v*2))\n {'aa': 20, 'bb': 40}\n >>> mp.filter(lambda (k, v): k == 'bb')\n {'bb': 20}", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shomah4a/pyexpression", "keywords": null, "license": "LGPL", "maintainer": null, "maintainer_email": null, "name": "scalalike.collections", "package_url": "https://pypi.org/project/scalalike.collections/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/scalalike.collections/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/shomah4a/pyexpression" }, "release_url": "https://pypi.org/project/scalalike.collections/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "scala like collection interface for python iterable.", "version": "0.1.0" }, "last_serial": 799261, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e6cc93f402a39c0ebd85ae6f986018cd", "sha256": "ebdc2a6ee4242fc2bc5f2909b8531b4b60eb61c71ce9bde2b8ca2d035f5f39fc" }, "downloads": -1, "filename": "scalalike.collections-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e6cc93f402a39c0ebd85ae6f986018cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3211, "upload_time": "2011-07-11T15:24:29", "url": "https://files.pythonhosted.org/packages/1d/ea/06c4ca5ce569523d074cae4e4979d4d1f6e0619713895528a595594effd1/scalalike.collections-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e6cc93f402a39c0ebd85ae6f986018cd", "sha256": "ebdc2a6ee4242fc2bc5f2909b8531b4b60eb61c71ce9bde2b8ca2d035f5f39fc" }, "downloads": -1, "filename": "scalalike.collections-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e6cc93f402a39c0ebd85ae6f986018cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3211, "upload_time": "2011-07-11T15:24:29", "url": "https://files.pythonhosted.org/packages/1d/ea/06c4ca5ce569523d074cae4e4979d4d1f6e0619713895528a595594effd1/scalalike.collections-0.1.0.tar.gz" } ] }