GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Julien Palard (mdk@mamot.fr)'s status on Tuesday, 19-Dec-2023 09:22:16 JSTJulien PalardJulien Palard
    in reply to
    • 🎓 Doc Freemo :jpf: 🇳🇱
    • Bèr Kessels 🐝 🚐 🏄 🌱

    @berkes @freemo In Python they are functions, not methods, because they work with any iterable (strings, lists, tuples, bytes, literraly any containers, even the ones you create). It's easier than having to implement a map and a reduce method on every container.

    But in Python we don't even use map and filter, comprehensions are (very often) more readable:

    >>> sum(map(abs, filter(lambda x: x > 10, the_iterable)))

    vs

    >>> sum(abs(x) for x in the_iterable if x > 10)

    In conversationTuesday, 19-Dec-2023 09:22:16 JST from mamot.frpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.