From 4efb34bd728732101432843ed0bfbeb971272287 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 21 Dec 2023 14:03:41 +0000 Subject: Add chapters --- lessons/src/lesson025_list_patterns/code.gleam | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 lessons/src/lesson025_list_patterns/code.gleam (limited to 'lessons/src/lesson025_list_patterns/code.gleam') diff --git a/lessons/src/lesson025_list_patterns/code.gleam b/lessons/src/lesson025_list_patterns/code.gleam deleted file mode 100644 index a5619aa..0000000 --- a/lessons/src/lesson025_list_patterns/code.gleam +++ /dev/null @@ -1,17 +0,0 @@ -import gleam/io -import gleam/int -import gleam/list - -pub fn main() { - let x = list.repeat(int.random(0, 5), times: int.random(0, 3)) - io.debug(x) - - let result = case x { - [] -> "Empty list" - [1] -> "List of just 1" - [4, ..] -> "List starting with 4" - [_, _] -> "List of 2 elements" - _ -> "Some other list" - } - io.debug(result) -} -- cgit v1.2.3