Functional Programming

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

What does “Map“ do in Functional Programming?

Map is used in order to apply a select function to each element within a list. In return leaving a list of results.

2
New cards

What does “Filter“ do in Functional Programming?

With the definition practically being in the name. Once “Filter” is used upon a data structure commonly a list all the available data will be used to create a brand new corresponding data structure following the conditions set along with “Filter“

3
New cards

What does “Reduce“ or “Fold“ do in Functional Programming?

Has the ability to reduce lists down to a single value by repeatedly combining the list of values.

4
New cards

What is a Higher Order function?

Theses special functions either take a function as an input (argument), returns functions as results or both.

5
New cards

What are 3 Higher Order Functions?

Map, Filter and Reduce or Fold

6
New cards

What does Foldl mean? (Fold Left)

It means that when folding we should start from the left and go right.

Vise Versa for Foldr (Fold Right)

7
New cards

What are the main Features of Functional Programming?

  • Functions act as building blocks with them coming together to create statements.

  • Every function accepts an input and returns the output.

  • Stateless & Immutable.

8
New cards

What does Immutability mean?

This means that variables cannot be changed after they are set.

9
New cards

What is a first-class object?

A function is considered a first-class object. As well as simple data types:

  • Integer

  • Char

etc.

10
New cards

What is the name given to the set of outputs from a function?

Co-Domain

11
New cards

What is the name given the inputs of a function?

Domain

12
New cards

What do Functional Programs use as First Class Objects?

Functions

13
New cards

What is a rule for Composition Functions?

The Domain of one function must be the same as the co-domain of the other.

14
New cards

What is statelessness?

in functional programming it means that it doesn’t matter the order considering how and where functions get called.

15
New cards

What is a fact-based model?

A model used in order to represent, model, query on the same level as Big Data.

16
New cards

What is an alternative to ER Models?

Fact-based models just instead of entities they make use of facts.

17
New cards

What is a “Fact“ considering fact-based models?

Looking at ER Models and Entities a “Fact“ is like one of those except that they cannot be deconstructed and each fact gets timestamped.

18
New cards

What are 3 facts about ‘Facts‘?

  • canNOT be deconstructed

  • They are eternally true

  • They must all be timestamped

19
New cards

What are the 3 key parts of a Graph Schema?

  • Nodes — (Represent core entities in Oval form)

  • Edges — (Directed or Undirected connecting lines between Nodes)

  • Properties — (Inside Rectangle boxes)

<ul><li><p>Nodes — (Represent core entities in <strong>Oval </strong>form)</p></li><li><p>Edges — (<strong>Directed or Undirected</strong> connecting <strong>lines </strong>between Nodes)</p></li><li><p>Properties — (Inside <strong>Rectangle </strong>boxes)</p></li></ul>
20
New cards

What is meant by Six Degrees of seperation?

Like that one video stating that most users are more like 4-6 people away from the Gaben Logan Newell.

Technically the longer and the more users that become apart of this net mean that it should both grow larger in numbers as well as further depending on how the pointer leans.