From 6642163cd7b66c65d8c3202dd4d9fb61afa47559 Mon Sep 17 00:00:00 2001 From: Natapat Samutpong Date: Sun, 13 Mar 2022 08:44:02 +0700 Subject: [PATCH] mix together hello world --- example/hello_world.hz | 5 +++++ example/hello_world_pipe.hz | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 example/hello_world_pipe.hz diff --git a/example/hello_world.hz b/example/hello_world.hz index fd2daf2..0a20682 100644 --- a/example/hello_world.hz +++ b/example/hello_world.hz @@ -1,4 +1,9 @@ fun main: int = do + -- Normal way of hello world @write("Hello, World!\n"); return 69; + + -- Hello world piped to @write() function + "Hello, World!\n" + |> @write(); end; \ No newline at end of file diff --git a/example/hello_world_pipe.hz b/example/hello_world_pipe.hz deleted file mode 100644 index fb84874..0000000 --- a/example/hello_world_pipe.hz +++ /dev/null @@ -1,4 +0,0 @@ -fun main: int = do - "Hello, World!\n" - |> @write(); -end; \ No newline at end of file