From df16a5bdedbd848d08656049fe26b242105ad901 Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 16 Mar 2026 17:19:46 +0100 Subject: [PATCH] refactor: gleamify :) --- src/simple_repl.gleam | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simple_repl.gleam b/src/simple_repl.gleam index 181b0c7..df813b2 100644 --- a/src/simple_repl.gleam +++ b/src/simple_repl.gleam @@ -31,7 +31,8 @@ fn history(_cmds: List(Command)) -> Nil { fn help(cmds: List(Command)) -> Nil { io.println("Available commands:") - list.each(cmds, fn(cmd) { + cmds + |> list.each(fn(cmd) { io.println(" " <> cmd.name <> " - " <> cmd.description) }) }