Skip to content

Instantly share code, notes, and snippets.

@olligobber
Created Jul 6, 2021
Embed
What would you like to do?
Latex is a lazy functional language
\documentclass[a4paper]{article}
\def \error{\def\error1{}\error2}
\def \S#1#2#3{#1#3{#2#3}}
\def \K#1#2{#1}
\def \i#1{#1\S\K}
\begin{document}
\i{\i{\i\i}}1\error % Does not error
\i{\i{\i\i}}\error1 % Errors
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment