Comment

Comment by pavlov

It’s awe-inspiring to see a K program where the comments are in another APL variant (I can’t pretend to know which):

  {d:~1=':s:^x             / s‿e←1⊸»⊸(>⋈<)' '=𝕩
   c:^"aeiou"?_x@&d&~s     / c←¬(s/𝕩)∊"aeiou"
   x,:,/$`pig`dog c        / ins←⥊c⊏["pig","dog"]
   x@<(+\d),{3}#c+2*!#c}   / ((+`s+e)∾3/c+2×↕≠c) ⍋⊸⊏ 𝕩∾ins
This program implements a Pigdog Latin translator, bien sûr.
parent pavlov 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton