diff options
author | Peter Saxton <peterhsaxton@gmail.com> | 2020-06-17 07:15:54 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-06-17 07:39:11 +0100 |
commit | 16ac7024bf620b8e8ba834aa27646e503b4450eb (patch) | |
tree | 47b122873bb8c816ca5758006218397b0b2c7ee9 | |
parent | a4ea7efadd177219711484255c671bd74248ace3 (diff) | |
download | gleam_stdlib-16ac7024bf620b8e8ba834aa27646e503b4450eb.tar.gz gleam_stdlib-16ac7024bf620b8e8ba834aa27646e503b4450eb.zip |
return value from debug so it can be piped
-rw-r--r-- | src/gleam/io.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/io.gleam b/src/gleam/io.gleam index 9fef99a..2b083b1 100644 --- a/src/gleam/io.gleam +++ b/src/gleam/io.gleam @@ -51,7 +51,7 @@ pub fn println(string: String) -> Nil { /// // -> [2, 3] /// [4, 6] /// -pub fn debug(term: anything) -> Nil { +pub fn debug(term: anything) -> anything { erl_print("~tp\n", [term]) - Nil + term } |