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) }) }