filmov
tv
What are monoids and how to use them - Scala tutorial

Показать описание
This video will introduce you to the Monoid and Semigroup type classes, their powers and rules that they have to obey. You'll see examples of common instances of these type classes as well as some more interesting ones, like the Map monoid. You'll also find out why a single type could have more than one lawful instance of the Monoid type class.
Table of contents:
0:00 - Introduction
0:50 - Definitions of Semigroup and Monoid
5:14 - Example: adding Integers
6:30 - Example: concatenating Strings
7:04 - Example: List monoid
8:31 - Alternative monoids: Product monoid for Int
10:28 - combineAll
11:38 - foldMap
13:35 - More advanced example: Map monoid (accumulating lists of values)
16:28 - Map monoid: grouping list elements by size
17:34 - Map monoid: counting occurences of elements in list
17:58 - Recap: what we learned
18:28 - Sneak peek of the Monoids and Semigroups libraries
Previous videos:
Learn more about:
Table of contents:
0:00 - Introduction
0:50 - Definitions of Semigroup and Monoid
5:14 - Example: adding Integers
6:30 - Example: concatenating Strings
7:04 - Example: List monoid
8:31 - Alternative monoids: Product monoid for Int
10:28 - combineAll
11:38 - foldMap
13:35 - More advanced example: Map monoid (accumulating lists of values)
16:28 - Map monoid: grouping list elements by size
17:34 - Map monoid: counting occurences of elements in list
17:58 - Recap: what we learned
18:28 - Sneak peek of the Monoids and Semigroups libraries
Previous videos:
Learn more about:
Monoids | Group theory episode 1
What is a monoid? | #SoME1
What are monoids and how to use them - Scala tutorial
How Monoids are useful in Programming?
A monad is a monoid in the category of endofunctors. Whats the problem? #SoMe2
Monoids and Categories
What a monoid is and why monoids kick monads' butt
Monoid in Discrete Mathematics | Group Theory
Functional Programming - 18: Magma, Semigroup, Monoid
Monoids, Free Monoids and Monoidal Categories in Applied Category Theory
[Mathematical Linguistics] Subgroups, Semigroups, and Monoids
Monoid Typeclass – Gints Dreimanis
Practical Category Theory: Monoids
basic algebraic structures: magma, semigroup ,monoid, group
Algebra: Groups (1) Semigroups and Monoids
Group Theory | Semi-Group , Monoid | Abelian Group | Discrete Mathematics
Luka Jacobowitz – Monoids, monoids, monoids
Life After Monoids
Daniel Tubbenhauer: Minimal representations of monoids
Abstract Algebra : What is a Group and an Abelian Group? (Semigroup and Monoid) (In Tagalog)
Reid Evans - Abstract Algebras and Where to Find Them Magmas, Monoids, and More! - λC 2018
Semigroups and Monoids in Scala
What are...the simples of the transformation monoid?
[ICFP'23] A well-known representation of monoids and its application to the function ‘vect...
Комментарии