First Class Function - Deepstash

First Class Function

In OOP we treat data and functions separately. In FP, they are all the same. We can create an array of functions, pass a function as argument, return a function from a method.

23

217 reads

CURATED FROM

IDEAS CURATED BY

Not your object oriented programming

The idea is part of this collection:

Machine Learning With Google

Learn more about computerscience with this collection

Understanding machine learning models

Improving data analysis and decision-making

How Google uses logic in machine learning

Related collections

Similar ideas to First Class Function

Seeing as Function

We have to see things as function. A function may run properly because of all parts of a function are in good shape, perfectly settled.

A bicycl e goes a long the street. This bicycle is a function called "bicycle" a main function as t...

The "counterexample method"

The "counterexample method"

While the premises may be true in an argument, the conclusion may or may not be correct, making the argument invalid. Example of an incorrect argument: Some New Yorkers are rude, some of them are artists, therefore some artists are rude.

A counterexample method is...

How 'Batching' works.

  • Writing code and reviewing code are now two separate functions within the same cognitive function. Even writing/reviewing code for two separate code bases are two separate sub-functions.
  • Grouping/responding to all emails is an email function. Even that is further broken down into tri...

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates