[go: nahoru, domu]

ROT13: Difference between revisions

Content deleted Content added
Insert an implementation of rot13 expressed in j.
Tag: Reverted
→‎J_(programming_language): remove - these examples don't really add much, Wikipedia isn't a library of programming languages, and there are several others for more prominent languages
Line 248:
}
</syntaxhighlight>
 
=== [[J_(programming_language)]] ===
Find the indexes of the data within J's alphabet. Use these indexes to index an anagram of well chosen cuts of the alphabet.<syntaxhighlight lang="j">
rot13=: a.&(([: ; 122 A. (<;.1~ (1 (0}) e.&'NAna[{'))@:[) { ~ i.)
rot13'Gnat'
Tang
</syntaxhighlight>
 
==See also==