Hi
Jump to navigation
Jump to search
Hi is a trivial esolang where everything prints "hi".
Examples
Hello, World!
Output:
hihihihihihihihihihihihihi
Implementations
Two implementations in Common Lisp shall be adduced, the first resorting to a short cut by exploiting the Hi source code length, the second veridically processing its content.
The nimble counting variant assumes the form:
(defun interpret-Hi (code) "Interprets the piece of Hi source CODE and returns NIL." (declare (type string code)) (loop repeat (length code) do (format T "hi")))
A rendition invested with enhanced honesty and industriousness constitutes:
(defun interpret-Hi (code) "Interprets the piece of Hi source CODE and returns NIL." (declare (type string code)) (loop for token of-type character across code do (format T "hi")))
Two implementations in Python shall also be adduced:
print("hi"*len(input()))
the other:
print("".join(["hi" for i in input()]))
They're respectively equivalent to the two Common Lisp implementations above.