Created
May 1, 2012 12:31
-
-
Save Yord/2567687 to your computer and use it in GitHub Desktop.
Example usage of https://github.com/Yord/LaTeX-Lists.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\input{list} | |
\def\times#1#2{\newcount\int\int\numexpr#1*#2\relax\the\int} | |
\begin{document} | |
\List[new]{numbers}{1,2,3,4,5,6,7,8,9} | |
list: \numbers[items] | |
head: \numbers[head] | |
tail: \numbers[tail] | |
\List[new]{doubles}{\numbers[map]{\times{2}}} | |
doubles: \doubles[items] | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment