Skip to content

Instantly share code, notes, and snippets.

@curioshiki
Last active June 15, 2023 09:45
Show Gist options
  • Select an option

  • Save curioshiki/cfdca8e106449445a48875c255840122 to your computer and use it in GitHub Desktop.

Select an option

Save curioshiki/cfdca8e106449445a48875c255840122 to your computer and use it in GitHub Desktop.
LAMBDA function =REVTEXT(string)
REVTEXT = LAMBDA(x,[y],
if(x<>"",
if(isomitted(y),
concat(right(x,1) , REVTEXT(LEFT(x,len(x)-1),len(x)-1)),
concat(right(x,1) , REVTEXT(LEFT(x,len(x)-1),y-1))
),
""
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment