Git Product home page Git Product logo

Comments (10)

Bondifrench avatar Bondifrench commented on August 23, 2024

If you are talking from Chapter 5, reduce is actually _.reduce() from the Ramda library, which has been curried.

DrBoolean needs to prefix a few functions explicitly with _., so it's obvious they are coming from a library.

from mostly-adequate-guide.

tsummerall avatar tsummerall commented on August 23, 2024

Thanks!

This construction is esoteric enough to non-Ramda users that a sidebar about how it operates would be worthwhile I think. As far as I can tell, the commonly-used underscore.js implementation of reduce() wouldn't allow this trick.

In particular I'm not understanding how reduce digests the empty array it's given in the example.

from mostly-adequate-guide.

DrBoolean avatar DrBoolean commented on August 23, 2024

I have a video available that talks about reduce: https://www.youtube.com/watch?v=JZSoPZUoR58

from mostly-adequate-guide.

tsummerall avatar tsummerall commented on August 23, 2024

That's a great video, thanks!

from mostly-adequate-guide.

jirutka avatar jirutka commented on August 23, 2024

@DrBoolean Heh, funny thing: I know you from your talk “Hey Underscore, You're Doing It Wrong!,” but didn’t know that you are Dr. Boolean, until know!

from mostly-adequate-guide.

DrBoolean avatar DrBoolean commented on August 23, 2024

ha, yeah. My avatar is a disguise!

from mostly-adequate-guide.

kdamball avatar kdamball commented on August 23, 2024

@DrBoolean YOU'RE THAT DUDE FROM THE UNDERSCORE VIDEO?

from mostly-adequate-guide.

DrBoolean avatar DrBoolean commented on August 23, 2024

haha, yep!

from mostly-adequate-guide.

kdamball avatar kdamball commented on August 23, 2024

I know of a few parties later this evening, if you still need one!

from mostly-adequate-guide.

DrBoolean avatar DrBoolean commented on August 23, 2024

ha. Leave it to me to forever ask the world where the party's at.

from mostly-adequate-guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.