Edition

From Esolang
Jump to navigation Jump to search

The Edition language is invented by User:A.

Double speak example

I"$R.
C"F"0@i1@i
Explanation
I    Take input
"$   Copy the input's length to clipboard
R.   Read the current file's content into the buffer
C"   Create a cursor clipboard chars below the current cursor
F"   Repeat clipboard times
0@i  Output the 0th cursor's content to the console and increment it
1@i  Output the 1st cursor's content to the console and increment it
Brace is implicitly ended
Srcf0K1Pi
Explanation
There is implicit input if the I command is not used
S     Save the input's length to the clipboard
r     Append the file by its content
c     Create a cursor clipboard chars below the current cursor
f     Repeat clipboard times (with clipboard available)
0     Navigate to cursor 0
K     Cut the current character to clipboard
1     Navigate to cursor 1
P     Paste the clipboard
i     Increment the cursor