From 1aa782ae22aa55d44ba4ed01ad447915dc7802cb Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Tue, 23 Jan 2024 14:41:22 +0000 Subject: Add equality lesson --- src/content/chapter0_basics/lesson07_equality/text.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/content/chapter0_basics/lesson07_equality/text.html (limited to 'src/content/chapter0_basics/lesson07_equality/text.html') diff --git a/src/content/chapter0_basics/lesson07_equality/text.html b/src/content/chapter0_basics/lesson07_equality/text.html new file mode 100644 index 0000000..e8c2169 --- /dev/null +++ b/src/content/chapter0_basics/lesson07_equality/text.html @@ -0,0 +1,13 @@ +

+ Gleam has the == and != operators for checking + equality. +

+

+ The operators can be used with values of any type, but both sides of the + operator must be of the same type. +

+

+ Equality is checked structurally, meaning that two values are equal + if they have the same structure rather than if they are at the same memory + location. +

-- cgit v1.2.3