Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Carlos Fdez Llamas (sirikon@plaza.remolino.town@plaza.remolino.town)'s status on Friday, 28-Dec-2018 15:40:43 UTC Carlos Fdez Llamas Carlos Fdez Llamas
    • Esteban Manchado Velázquez
    • jartigag
    • Carlos Fdez Llamas
    @jartigag @estebanm

    The basic idea is, make a function that returns another function.

    This way, instead of passing a normal, always-the-same function as a callback to get called eventually, you can "parametrize" the passed function giving extra context.

    Here you can see that "echo" returns another function, but that returned function will know about that paremeter sended to "echo".
    In conversation Friday, 28-Dec-2018 15:40:43 UTC from plaza.remolino.town permalink
    • jartigag repeated this.
    • jartigag (jartigag@mastodon.social)'s status on Friday, 28-Dec-2018 15:42:44 UTC jartigag jartigag
      in reply to
      • Esteban Manchado Velázquez

      @sirikon @estebanm now's working. thank you so much! 😊

      In conversation Friday, 28-Dec-2018 15:42:44 UTC permalink

      Attachments


      1. https://files.mastodon.social/media_attachments/files/009/423/438/original/370b720b8f79766c.png

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.