Other Ocaml solutions.
let hello = "Hello, World!"
Other Prolog solutions.
hello_world('Hello World!').
Other Racket solutions.
#lang racket
(define (hello) "Hello, World!")
(provide hello)
Other Nim solutions.
proc hello*: string =
"Hello, World!"
Other Python solutions.
def hello():
return "Hello, World!"
Other Clojure solutions.
(ns hello-world)
(defn hello [] "Hello, World!")
Other Elixir solutions.
defmodule HelloWorld do
@doc """
Simply returns "Hello, World!"
"""
@spec hello :: String.t()
def hello do
"Hello, World!"
end
end
Other Rust solutions.
pub fn hello() -> &'static str {
"Hello, World!"
}
Other Elm solutions.
module HelloWorld exposing (helloWorld)
helloWorld : String
helloWorld =
"Hello, World!"
Other Haskell solutions.
module HelloWorld
( hello
) where
hello :: String
hello = "Hello, World!"
Other Roc solutions.
module [hello]
hello : Str
hello = "Hello, World!"
Other Javascript solutions.
export function hello() {
return "Hello, World!";
}
Other C solutions.
#include "hello_world.h"
const char *hello(void)
{
return "Hello, World!";
}