From e66db486ffa57a1ce68a85ab6cb7bfbb05e260b8 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 4 Dec 2023 17:05:51 +0000 Subject: Start content --- lessons/src/lesson001_basics/code.gleam | 4 +++- lessons/src/lesson001_basics/text.html | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'lessons/src/lesson001_basics') diff --git a/lessons/src/lesson001_basics/code.gleam b/lessons/src/lesson001_basics/code.gleam index 440dc98..67cc6b4 100644 --- a/lessons/src/lesson001_basics/code.gleam +++ b/lessons/src/lesson001_basics/code.gleam @@ -1,5 +1,7 @@ +// Import a Gleam module from the standard library import gleam/io pub fn main() { - io.println("Hello, Mike!") + // Print to the console + io.println("Hello, Joe!") } diff --git a/lessons/src/lesson001_basics/text.html b/lessons/src/lesson001_basics/text.html index 53bd3d3..8e2033a 100644 --- a/lessons/src/lesson001_basics/text.html +++ b/lessons/src/lesson001_basics/text.html @@ -1,3 +1,17 @@

- Hey look, cool stuff! + Here is a program that prints out the text "Hello, Joe!". +

+

+ It does this by using the `println` function which has been imported from the + gleam/io + module, which is part of the Gleam standard library. +

+

+ In a normal Gleam program this program would be run use the command + gleam run on the command line, but here in this tutorial the + program is automatically compiled and run as the code is edited. +

+

+ Try changing the text being printed to Hello, Mike! and see what + happens.

-- cgit v1.2.3