#28. Literate Haskell, 256 bytes
. |+xx<<<"aa"<<<xx+| .
> g x=elem '<'x&&e%x==e
> e=tail(show 0)
> ('<':a)%('>':b)=a%b
> a%('<':b)=('<':a)%b
> a%('>':b)='<':e
> a%(x:b)=a%b{->Hi, Retina!Henry Jams?-}
> a@(_:_)%_=a
> a%b=e
a
b
C
d
e
f
g
h
i
j
k
l
m
n
o
pppppppppp
q 3~
My program has 22 characters in the first line, which according to the description of the X86 answer should not work, however it does work, and if I shorten the line to 21 characters it stops working. Not sure why this is the case.
Satisfies
- The first character is a
.
. - It contains an
e
. - Its length is even.
- Its length is a perfect square.
- It contains an
a
. - It contains a
>
character. - Contains the exact string
->
. - Contains the exact string
Hi, Retina!
. - The sum of the first two Unicode code points is a multiple of 5.
- The 10-th character is a
"
. - The last non-empty line does not have any duplicate characters.
- The first line is a palindrome of length > 5.
The first line is exactly 21 characters long (not including newline).???- It contains a
?
. - It contains a
|
. - Contains a
+
. - It is at least 28 lines long.
- The following characters are used five times in total:
!"#$.[\]
and the codepoint of the second character is less than 60. - Contains
Henry Jams?
as a continuous substring. - The last character is
~
. - It contains a
C
- Each line contains a tab character.
- The ninth line contains at least 22 characters, excluding the newline.
- The tab character can't be the first character on a line
- The third-to-last character is a tab.
- There are at least 28 lines, and they are all distinct.
- There must be a
>
in the code and angle braces must be balanced
For future answers:
- The first line is a palindrome matching
.␣␣␣␣␣␣␣␣"␣"␣␣␣␣␣␣␣␣.
(you are free to fill in the ␣s). - The second character is one of
',16;
, or a tab, or one of\x04\x0e\x13\x18\x1d
. - Its length is an even perfect square.
- There are at least 28 lines, and all lines are distinct.
- The ninth line must have at least 22 characters (excluding the newline).
- The last line does not have any duplicate characters.
- Contains the exact strings
->
,Hi, Retina!
, andHenry Jams?
. - It contains
|
,+
andC
. - Each line contains at least one tab character, but it can't be the first character on a line.
!".
are banned except where necessary:- Only
!
inHi, Retina!
and the two.
and two"
in the first line are allowed.
- Only
#$[\]
may not appear in the program.- The program ends with:
tab
, (whatever),~
. - Angle braces must be balanced