Established France 2017The online brain of Dereck MezquitaDereck's Notes
Dereck's Notes

About

This website is custom made by Dereck using React, Next.js 14 app dir, and TypeScript. It incorporates progressive web app technologies and relies on a Bun backend along with a MongoDB database and Docker for CI/CD deployment.

If you would like to know more you can find the full source code on github.com/dereckmezquita/derecksnotes.com

set

Set - In mathematics, a set is a well-defined collection of distinct objects. Notation often uses curly braces: . Operations like intersection, union, and subset relationships form the basis of set theory.

Key points:

  • No repeated elements: sets ignore duplicates.
  • Can contain any type of object, even other sets.

R demonstration:

library(data.table)
 
A <- c(1,2,3)
B <- c(3,4,5)
intersect(A,B)
## [1] 3
union(A,B)
## [1] 1 2 3 4 5

Comments

Please log in to leave a comment.

Loading comments...