Commit 3e0e3d88 authored by Gautham Velchuru's avatar Gautham Velchuru
Browse files

added more

parent 9098458a
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{p}{(}\PYG{k}{define} \PYG{p}{(}\PYG{n}{make\PYGZhy{}account}\PYG{p}{)}
\PYG{p}{(}\PYG{k}{let} \PYG{p}{(}\PYG{p}{[}\PYG{n}{my\PYGZhy{}balance} \PYG{l+m+mi}{0}\PYG{p}{])}
\PYG{c+c1}{;; return the current balance}
\PYG{p}{(}\PYG{k}{define} \PYG{p}{(}\PYG{n}{balance}\PYG{p}{)}
\PYG{n}{my\PYGZhy{}balance}\PYG{p}{)}
\PYG{c+c1}{;; make a withdrawal}
\PYG{p}{(}\PYG{k}{define} \PYG{p}{(}\PYG{n}{withdraw} \PYG{n}{amount}\PYG{p}{)}
\PYG{p}{(}\PYG{k}{if} \PYG{p}{(}\PYG{n+nb}{\PYGZgt{}=} \PYG{n}{my\PYGZhy{}balance} \PYG{n}{amount}\PYG{p}{)}
\PYG{p}{(}\PYG{k}{begin} \PYG{p}{(}\PYG{k}{set!} \PYG{n}{my\PYGZhy{}balance} \PYG{p}{(}\PYG{n+nb}{\PYGZhy{}} \PYG{n}{my\PYGZhy{}balance} \PYG{n}{amount}\PYG{p}{))}
\PYG{n}{my\PYGZhy{}balance}\PYG{p}{)}
\PYG{l+s+s2}{\PYGZdq{}Insufficient funds\PYGZdq{}}\PYG{p}{))}
\PYG{c+c1}{;; make a deposit}
\PYG{p}{(}\PYG{k}{define} \PYG{p}{(}\PYG{n}{deposit} \PYG{n}{amount}\PYG{p}{)}
\PYG{p}{(}\PYG{k}{set!} \PYG{n}{my\PYGZhy{}balance} \PYG{p}{(}\PYG{n+nb}{+} \PYG{n}{my\PYGZhy{}balance} \PYG{n}{amount}\PYG{p}{))}
\PYG{n}{my\PYGZhy{}balance}\PYG{p}{)}
\PYG{c+c1}{;; the dispatching function \PYGZhy{}\PYGZhy{} decide what to do with the request}
\PYG{p}{(}\PYG{k}{define} \PYG{p}{(}\PYG{n}{dispatch} \PYG{n}{m}\PYG{p}{)}
\PYG{p}{(}\PYG{k}{cond} \PYG{p}{[}\PYG{p}{(}\PYG{n+nb}{eq?} \PYG{n}{m} \PYG{o}{\PYGZsq{}}\PYG{l+s+ss}{balance}\PYG{p}{)} \PYG{n}{balance}\PYG{p}{]}
\PYG{p}{[}\PYG{p}{(}\PYG{n+nb}{eq?} \PYG{n}{m} \PYG{o}{\PYGZsq{}}\PYG{l+s+ss}{withdraw}\PYG{p}{)} \PYG{n}{withdraw}\PYG{p}{]}
\PYG{p}{[}\PYG{p}{(}\PYG{n+nb}{eq?} \PYG{n}{m} \PYG{o}{\PYGZsq{}}\PYG{l+s+ss}{deposit}\PYG{p}{)} \PYG{n}{deposit}\PYG{p}{]}
\PYG{p}{[}\PYG{k}{else} \PYG{p}{(}\PYG{n+nb}{error} \PYG{l+s+s2}{\PYGZdq{}Unknown request \PYGZhy{}\PYGZhy{} MAKE\PYGZhy{}ACCOUNT\PYGZdq{}} \PYG{n}{m}\PYG{p}{)]))}
\PYG{n}{dispatch}\PYG{p}{))}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{n}{Map}\PYG{o}{\PYGZlt{}}\PYG{n}{String}\PYG{o}{,} \PYG{n}{Integer}\PYG{o}{\PYGZgt{}} \PYG{n}{map} \PYG{o}{=} \PYG{k}{new} \PYG{n}{HashMap}\PYG{o}{\PYGZlt{}\PYGZgt{}();}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{n+nf}{f} \PYG{o}{.} \PYG{n}{g}
\end{Verbatim}
\relax
\@writefile{toc}{\contentsline {section}{\numberline {1}Racket}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {1.1}Bools}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {1.2}Structs}{1}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {1.2.1}Printing}{1}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {1.2.2}Properties}{1}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Prolog}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Multiple answers}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}clpfd}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}clpr, more advanced list rule}{2}}
\@writefile{toc}{\contentsline {section}{\numberline {3}Ruby}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}Syntactic Sugar}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.2}Example using class variables, overriding, and hashes}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.3}Blocks, procs, lambdas}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.4}Inheritance}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.5}Other semi-important things}{3}}
\@writefile{toc}{\contentsline {section}{\numberline {4}Haskell}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Call-By}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Static typing}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}Let/Where}{4}}
\@writefile{toc}{\contentsline {section}{\numberline {5}Java}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Generics, subtyping, etc}{5}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.1.1}Arrays}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Wildcards}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {1.1}Lists}{1}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Scoping}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Parameters}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Let}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}Let*}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.4}letrec}{1}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.5}Eval/Apply}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.6}Program/Data equivalence}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.7}Side effects}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.8}Delay}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.9}Macros}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.10}Simulating Objects}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.11}Functions with variable number of arguments}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.12}Improper list}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.13}Bools}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.14}Structs}{4}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.14.1}Printing}{4}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.14.2}Properties}{4}}
\@writefile{toc}{\contentsline {section}{\numberline {3}Prolog}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}Multiple answers}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.2}clpfd}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.3}clpr, more advanced list rule}{5}}
\@writefile{toc}{\contentsline {section}{\numberline {4}Ruby}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Syntactic Sugar}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Example using class variables, overriding, and hashes}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}Blocks, procs, lambdas}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}Inheritance}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.5}Other semi-important things}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {5}Haskell}{7}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Call-By}{7}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Static typing}{7}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.3}Let/Where}{7}}
\@writefile{toc}{\contentsline {section}{\numberline {6}Java}{8}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.1}Generics, subtyping, etc}{8}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.1.1}Arrays}{8}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.2}Wildcards}{8}}
\@writefile{toc}{\contentsline {section}{\numberline {7}Big Ideas}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}Scope}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.2}Static vs Dynamic Analysis}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.3}Major programming language families}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.4}Interaction of Languages and Style}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.5}Objects and Encapsulation}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.6}Purely Functional Languages vs State}{10}}
\@writefile{toc}{\contentsline {section}{\numberline {8}General Concepts}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.1}Types}{10}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {8.1.1}Static vs Dynamic Typing}{10}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {8.1.2}Type Safety}{10}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {8.1.3}Type Inference}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.2}Strongly typed languages}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.3}Polymorphism}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.4}Functional vs Imperative}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.5}Higher-order functions}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.6}Parameter Passing}{11}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {8.6.1}Call-By-Value}{11}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {8.6.2}Call-by-reference}{11}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {8.6.3}Call-by-name}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.7}Lazy evaluation/thunks}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.8}Overloading}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.9}Coercion}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.10}Closures}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.11}Equality vs Identity}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.12}Compile time vs runtime}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.13}Recursion}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.14}Aliasing}{12}}
\gdef\minted@oldcachelist{,
default-pyg-prefix.pygstyle,
default.pygstyle,
72C1057BAD3ADC9B2A3254865F6027FF.pygtex,
C628629981CF55D032F3C98601789CD4D33F5A877DB1AF49890DD2495A2B2021.pygtex,
E3B732DDE840FC16773250F77F310BC0DB87068ADF79CDCF84312BB9FF189355.pygtex,
2963A23D45F46549918EDF3D70E4CF9ADB87068ADF79CDCF84312BB9FF189355.pygtex,
E52FDF8B16A930D9CB0D715D43B382B6F1F23DCF748988B03E34A24BA5282B82.pygtex,
9D438906527FBE7B7EFB20FB20502428F1F23DCF748988B03E34A24BA5282B82.pygtex,
EE396F4F7DDCDDD92E3D7FB81D4371F3F1F23DCF748988B03E34A24BA5282B82.pygtex,
4AF490FEA182ADBF31D67A1B254CF9DFF1F23DCF748988B03E34A24BA5282B82.pygtex,
A56864D158370C50A61A8B40BF593B7AF1F23DCF748988B03E34A24BA5282B82.pygtex,
87BA332A2091250B02A456556DB5A6596F6B7FA5EE8EA4AC82C8E3C74C760408.pygtex,
72D37D2B01BA483F7A5BD40BD6BB278E6F6B7FA5EE8EA4AC82C8E3C74C760408.pygtex,
F6F9C282D0607C1297F7BD79058D6E2BE04FAC3F4FD90B26ADE88A1E706A08A2.pygtex,
2EEB3A010C71E706DCBB719B2551C060E04FAC3F4FD90B26ADE88A1E706A08A2.pygtex,
F95EEB5DBC5CAC0C96CDFF57347261BBE04FAC3F4FD90B26ADE88A1E706A08A2.pygtex}
\@writefile{toc}{\contentsline {section}{\numberline {6}General Concepts}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.1}Pointer stuff}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.2}Type variance}{6}}
1EA929CD2BF2BD3C2D3687421C563BBA6CD81CFDCB5F0793F497D493F610EBFB.pygtex,
1B3C5941AD6C1BB61D97C2CCAF2710626CD81CFDCB5F0793F497D493F610EBFB.pygtex,
AB4D65C4143175A385628621875BE9EC6CD81CFDCB5F0793F497D493F610EBFB.pygtex,
06E8C62ECB8CF47D4B0B17F6E88F27B46CD81CFDCB5F0793F497D493F610EBFB.pygtex,
01BAD6EA5069C485AE1342E9AAC656366CD81CFDCB5F0793F497D493F610EBFB.pygtex,
4717C2ABD5C82EEB681B252965F4CD466CD81CFDCB5F0793F497D493F610EBFB.pygtex,
8D00AD237703CBE4A4F273951D0EF2116CD81CFDCB5F0793F497D493F610EBFB.pygtex,
E47DECE261F6BDAFE988FE188C0AEBDA6CD81CFDCB5F0793F497D493F610EBFB.pygtex,
7D06FEC69347AFA3186649DC3C1DBCA06CD81CFDCB5F0793F497D493F610EBFB.pygtex,
996946FE6590634B25B353ADBDFFABC86CD81CFDCB5F0793F497D493F610EBFB.pygtex,
C628629981CF55D032F3C98601789CD46CD81CFDCB5F0793F497D493F610EBFB.pygtex,
E3B732DDE840FC16773250F77F310BC04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
2963A23D45F46549918EDF3D70E4CF9A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
E52FDF8B16A930D9CB0D715D43B382B6A15C0CEA82421F045DAF380F7E860C2A.pygtex,
9D438906527FBE7B7EFB20FB20502428A15C0CEA82421F045DAF380F7E860C2A.pygtex,
EE396F4F7DDCDDD92E3D7FB81D4371F3A15C0CEA82421F045DAF380F7E860C2A.pygtex,
4AF490FEA182ADBF31D67A1B254CF9DFA15C0CEA82421F045DAF380F7E860C2A.pygtex,
A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex,
87BA332A2091250B02A456556DB5A659F2CA81E7B26B3986E5291D03C014E77B.pygtex,
72D37D2B01BA483F7A5BD40BD6BB278EF2CA81E7B26B3986E5291D03C014E77B.pygtex,
F6F9C282D0607C1297F7BD79058D6E2B465A516120F3196FA8E2CA26C46A5C64.pygtex,
2EEB3A010C71E706DCBB719B2551C060465A516120F3196FA8E2CA26C46A5C64.pygtex,
F95EEB5DBC5CAC0C96CDFF57347261BB465A516120F3196FA8E2CA26C46A5C64.pygtex,
CEBB2E4153930A8AB1FA44928D66F94CA15C0CEA82421F045DAF380F7E860C2A.pygtex,
5B8FDFBCF96E776350835B2A51C36EEBF2CA81E7B26B3986E5291D03C014E77B.pygtex,
FF3902625C50950847A6A70A8600D59DF2CA81E7B26B3986E5291D03C014E77B.pygtex,
EE2D7538D96D4B5E2BC4B913B41FC366465A516120F3196FA8E2CA26C46A5C64.pygtex,
3B10F88D8DCED974CDD9946B53C2D9666CD81CFDCB5F0793F497D493F610EBFB.pygtex}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.15}Pointer stuff}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.16}Type variance}{13}}
# Fdb version 3
["pdflatex"] 1527834190 "all_study_guide.tex" "all_study_guide.pdf" "all_study_guide" 1527834190
"/dev/null" 1527785117 0 d41d8cd98f00b204e9800998ecf8427e ""
["pdflatex"] 1527911963 "all_study_guide.tex" "all_study_guide.pdf" "all_study_guide" 1527911963
"/dev/null" 1527899507 0 d41d8cd98f00b204e9800998ecf8427e ""
"/usr/share/texmf-dist/fonts/enc/dvips/cm-super/cm-super-ts1.enc" 1520157211 2900 1537cc8184ad1792082cd229ecc269f4 ""
"/usr/share/texmf-dist/fonts/map/fontname/texfonts.map" 1520157216 3332 103109f5612ad95229751940c61aada0 ""
"/usr/share/texmf-dist/fonts/tfm/jknappen/ec/tcrm1000.tfm" 1520157220 1536 e07581a4bb3136ece9eeb4c3ffab8233 ""
......@@ -8,12 +8,15 @@
"/usr/share/texmf-dist/fonts/tfm/public/cm/cmbx12.tfm" 1520157226 1324 c910af8c371558dc20f2d7822f66fe64 ""
"/usr/share/texmf-dist/fonts/tfm/public/cm/cmitt10.tfm" 1520157226 768 2297ad2ac26f37e67f756dad27c77d68 ""
"/usr/share/texmf-dist/fonts/tfm/public/cm/cmr12.tfm" 1520157226 1288 655e228510b4c2a1abe905c368440826 ""
"/usr/share/texmf-dist/fonts/tfm/public/cm/cmti10.tfm" 1520157226 1480 aa8e34af0eb6a2941b776984cf1dfdc4 ""
"/usr/share/texmf-dist/fonts/tfm/public/cm/cmtt10.tfm" 1520157225 768 1321e9409b4137d6fb428ac9dc956269 ""
"/usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb" 1520157214 34811 78b52f49e893bcba91bd7581cdc144c0 ""
"/usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb" 1520157214 32080 340ef9bf63678554ee606688e7b5339d ""
"/usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmitt10.pfb" 1520157213 26057 fad158094905eaf20f4ae3782af0c45c ""
"/usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb" 1520157213 36299 5f9df58c2139e7edcf37c8fca4bd384d ""
"/usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb" 1520157213 35752 024fb6c41858982481f6968b5fc26508 ""
"/usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb" 1520157213 32569 5e5ddc8df908dea60932f3c484a54c0d ""
"/usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb" 1520157213 37944 359e864bd06cde3b1cf57bb20757fb06 ""
"/usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb" 1520157213 31099 c85edf1dd5b9e826d67c9c7293b6786c ""
"/usr/share/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb" 1520157212 138258 6525c253f16cededa14c7fd0da7f67b2 ""
"/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii" 1520157251 71627 94eb9990bed73c364d7f53f960cc8c5b ""
......@@ -61,28 +64,43 @@
"/usr/share/texmf/tex/latex/minted/minted.sty" 1504428290 47165 6a3e43a8d03bd86910a1dbf68d6c3645 ""
"/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map" 1527807927 334286 7d54d57af850f32d2e4cd0d3222731c3 ""
"/var/lib/texmf/web2c/pdftex/pdflatex.fmt" 1525580140 7738160 cecf5c8a2a1880714884cc32d352f09b ""
"_minted-all_study_guide/2963A23D45F46549918EDF3D70E4CF9ADB87068ADF79CDCF84312BB9FF189355.pygtex" 1527833801 474 cb32fefdd9d9bfca3cb5585bf144f880 ""
"_minted-all_study_guide/2EEB3A010C71E706DCBB719B2551C060E04FAC3F4FD90B26ADE88A1E706A08A2.pygtex" 1527833803 1793 fc748dcaac83c6642f8e03774e669883 ""
"_minted-all_study_guide/4AF490FEA182ADBF31D67A1B254CF9DFF1F23DCF748988B03E34A24BA5282B82.pygtex" 1527833802 1100 2626d5fe6a1fb1f7d79fa8b6fbf8f9df ""
"_minted-all_study_guide/72D37D2B01BA483F7A5BD40BD6BB278E6F6B7FA5EE8EA4AC82C8E3C74C760408.pygtex" 1527833803 1303 97e14fe839e2162da54266c4b22e53ce ""
"_minted-all_study_guide/87BA332A2091250B02A456556DB5A6596F6B7FA5EE8EA4AC82C8E3C74C760408.pygtex" 1527833802 403 31c11736f7cdcf21c11b4a38db52a9ab ""
"_minted-all_study_guide/9D438906527FBE7B7EFB20FB20502428F1F23DCF748988B03E34A24BA5282B82.pygtex" 1527833802 813 0ffaa085abd1b720632cb33c0b77e89b ""
"_minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AF1F23DCF748988B03E34A24BA5282B82.pygtex" 1527833802 250 6e4f5848cb69f08a2d83f04e2f7873f1 ""
"_minted-all_study_guide/C628629981CF55D032F3C98601789CD4D33F5A877DB1AF49890DD2495A2B2021.pygtex" 1527833905 547 6a3b63aeeac14750d97e1c7f39e2b4c0 ""
"_minted-all_study_guide/E3B732DDE840FC16773250F77F310BC0DB87068ADF79CDCF84312BB9FF189355.pygtex" 1527833801 631 449e2d950049eb1ab6bc4b175533c26b ""
"_minted-all_study_guide/E52FDF8B16A930D9CB0D715D43B382B6F1F23DCF748988B03E34A24BA5282B82.pygtex" 1527833801 288 ab6c94f8baf440473d0248193384269f ""
"_minted-all_study_guide/EE396F4F7DDCDDD92E3D7FB81D4371F3F1F23DCF748988B03E34A24BA5282B82.pygtex" 1527833802 371 52f3a09319232a02e8d58bcf2bd5ce9a ""
"_minted-all_study_guide/F6F9C282D0607C1297F7BD79058D6E2BE04FAC3F4FD90B26ADE88A1E706A08A2.pygtex" 1527833803 1512 73d62f911fadd899143b66355ecdf243 ""
"_minted-all_study_guide/F95EEB5DBC5CAC0C96CDFF57347261BBE04FAC3F4FD90B26ADE88A1E706A08A2.pygtex" 1527833803 124 747eb20f747e7bf77c70b95443fbc5e9 ""
"_minted-all_study_guide/01BAD6EA5069C485AE1342E9AAC656366CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527910909 114 80a7f39b73f2c89a3ae321c2f02e3a91 ""
"_minted-all_study_guide/06E8C62ECB8CF47D4B0B17F6E88F27B46CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527910909 364 06d1c92439b5aa37464ed63187a335da ""
"_minted-all_study_guide/1B3C5941AD6C1BB61D97C2CCAF2710626CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527910239 418 40ff9d07aaba9b65e8bd07ba069e953a ""
"_minted-all_study_guide/1EA929CD2BF2BD3C2D3687421C563BBA6CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527909744 332 163f169ca4fc135447519440a02f3eae ""
"_minted-all_study_guide/2963A23D45F46549918EDF3D70E4CF9A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex" 1527901145 474 cb32fefdd9d9bfca3cb5585bf144f880 ""
"_minted-all_study_guide/2EEB3A010C71E706DCBB719B2551C060465A516120F3196FA8E2CA26C46A5C64.pygtex" 1527901147 1793 fc748dcaac83c6642f8e03774e669883 ""
"_minted-all_study_guide/3B10F88D8DCED974CDD9946B53C2D9666CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527907545 577 ef7e1b48146115cd31b5892b8df62cfc ""
"_minted-all_study_guide/4717C2ABD5C82EEB681B252965F4CD466CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527911942 510 7bc5109b23a667a84bc219744bf92122 ""
"_minted-all_study_guide/4AF490FEA182ADBF31D67A1B254CF9DFA15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527901146 1100 2626d5fe6a1fb1f7d79fa8b6fbf8f9df ""
"_minted-all_study_guide/5B8FDFBCF96E776350835B2A51C36EEBF2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527901831 297 76a7c54f0100c74ce6ad428da7b01c4c ""
"_minted-all_study_guide/72D37D2B01BA483F7A5BD40BD6BB278EF2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527901147 1303 97e14fe839e2162da54266c4b22e53ce ""
"_minted-all_study_guide/7D06FEC69347AFA3186649DC3C1DBCA06CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527911944 201 ef384ddccfcd8315243a58ce9efd5488 ""
"_minted-all_study_guide/87BA332A2091250B02A456556DB5A659F2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527901146 403 31c11736f7cdcf21c11b4a38db52a9ab ""
"_minted-all_study_guide/8D00AD237703CBE4A4F273951D0EF2116CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527911943 953 6856c2d16382ff3be6e5f83176c93ab1 ""
"_minted-all_study_guide/996946FE6590634B25B353ADBDFFABC86CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527911963 166 cded41d5a8a198e155215dc154f7c4f3 ""
"_minted-all_study_guide/9D438906527FBE7B7EFB20FB20502428A15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527901145 813 0ffaa085abd1b720632cb33c0b77e89b ""
"_minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527901146 250 6e4f5848cb69f08a2d83f04e2f7873f1 ""
"_minted-all_study_guide/AB4D65C4143175A385628621875BE9EC6CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527910355 742 8f15ef4e3ee5b1cb61d0d927e3729214 ""
"_minted-all_study_guide/C628629981CF55D032F3C98601789CD46CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527901144 547 6a3b63aeeac14750d97e1c7f39e2b4c0 ""
"_minted-all_study_guide/CEBB2E4153930A8AB1FA44928D66F94CA15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527901440 167 a8e81e2af1f97334084760f9e01b81a7 ""
"_minted-all_study_guide/E3B732DDE840FC16773250F77F310BC04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex" 1527901144 631 449e2d950049eb1ab6bc4b175533c26b ""
"_minted-all_study_guide/E47DECE261F6BDAFE988FE188C0AEBDA6CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527911943 2252 b7a6cbd327e9ccae35cdf89f5956c53f ""
"_minted-all_study_guide/E52FDF8B16A930D9CB0D715D43B382B6A15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527901145 288 ab6c94f8baf440473d0248193384269f ""
"_minted-all_study_guide/EE2D7538D96D4B5E2BC4B913B41FC366465A516120F3196FA8E2CA26C46A5C64.pygtex" 1527906454 232 205a1f76b30aba05f129e1a5a1157629 ""
"_minted-all_study_guide/EE396F4F7DDCDDD92E3D7FB81D4371F3A15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527901146 371 52f3a09319232a02e8d58bcf2bd5ce9a ""
"_minted-all_study_guide/F6F9C282D0607C1297F7BD79058D6E2B465A516120F3196FA8E2CA26C46A5C64.pygtex" 1527901147 1512 73d62f911fadd899143b66355ecdf243 ""
"_minted-all_study_guide/F95EEB5DBC5CAC0C96CDFF57347261BB465A516120F3196FA8E2CA26C46A5C64.pygtex" 1527901147 124 747eb20f747e7bf77c70b95443fbc5e9 ""
"_minted-all_study_guide/FF3902625C50950847A6A70A8600D59DF2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527901896 89 33bb2290c9123be26b21c33ff6776d09 ""
"_minted-all_study_guide/default-pyg-prefix.pygstyle" 1527807957 7889 3ce1fbc763e3e2c748310f4fe31722b6 ""
"_minted-all_study_guide/default.pygstyle" 1527807957 9275 f200be7fc0b7de2461cca28cb35b1427 ""
"all_study_guide.aex" 0 -1 0 ""
"all_study_guide.aux" 1527834003 3097 5a1a11e5f3a990f0912ad5502cd6125c ""
"all_study_guide.aux" 1527911963 7707 cac1679df68fbfffd9f5179d01b90fb9 ""
"all_study_guide.pyg" 0 -1 0 ""
"all_study_guide.tex" 1527834189 8993 c8d976ae7aaa68637f3b5f1a648c8bca ""
"all_study_guide.tex" 1527911961 19799 41cffed1a1eed4a7d77a927453424244 ""
"all_study_guide.w18" 0 -1 0 ""
(generated)
"all_study_guide.aux"
"all_study_guide.pdf"
"all_study_guide.log"
"all_study_guide.pdf"
"all_study_guide.aux"
"all_study_guide.pyg"
This diff is collapsed.
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Arch Linux) (preloaded format=pdflatex 2018.5.5) 31 MAY 2018 23:23
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Arch Linux) (preloaded format=pdflatex 2018.5.5) 1 JUN 2018 20:59
entering extended mode
\write18 enabled.
file:line:error style messages enabled.
......@@ -703,201 +703,124 @@ Package textcomp Info: Setting ptmj sub-encoding to TS1/4 on input line 409.
\makeMPintoPDFobject=\count126
\everyMPtoPDFconversion=\toks23
)
LaTeX Font Info: Try loading font information for TS1+cmr on input line 10.
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
)
./all_study_guide.tex:10: You can't use `macro parameter character #' in horizontal mode.
l.10 \item or with an empty list returns #
f
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
./all_study_guide.tex:11: Undefined control sequence.
l.11 \items
and with an empty list returns #t
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
./all_study_guide.tex:11: You can't use `macro parameter character #' in horizontal mode.
l.11 ... \items and with an empty list returns #
t
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
./all_study_guide.tex:12: Undefined control sequence.
l.12 \items
or returns the first true thing or #f
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
./all_study_guide.tex:12: You can't use `macro parameter character #' in horizontal mode.
l.12 ...items or returns the first true thing or #
f
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
./all_study_guide.tex:14: Undefined control sequence.
l.14 \items
and returns the first false thing or #t
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
./all_study_guide.tex:14: You can't use `macro parameter character #' in horizontal mode.
l.14 ...ems and returns the first false thing or #
t
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
./all_study_guide.tex:15: Bad space factor (0).
<recently read> \@savsf
l.15 \end{minted}
I allow only values in the range 1..32767 here.
./all_study_guide.tex:15: LaTeX Error: \begin{document} ended by \end{VerbatimOut}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.15 \end{minted}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
./all_study_guide.tex:15: Extra \endgroup.
<recently read> \endgroup
l.15 \end{minted}
Things are pretty mixed up, but I think the worst is over.
(./_minted-all_study_guide/default-pyg-prefix.pygstyle) (./_minted-all_study_guide/default.pygstyle)
runsystem(pygmentize -l php -f latex -P commandprefix=PYG -F tokenmerge -o _minted-all_study_guide/72C1057BAD3ADC9B2A3254865F6027FF.pygtex all_study_guide.pyg)...executed.
./all_study_guide.tex:15: Package minted Error: Missing Pygments output; \inputminted was
probably given a file that does not exist--otherwise, you may need
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
l.15 \end{minted}
This could be caused by using -output-directory or -aux-directory
without setting minted's outputdir, or by using a build tool that
changes paths in ways minted cannot detect,
or using frozencache with a missing file.
./all_study_guide.tex:15: LaTeX Error: \begin{document} ended by \end{minted}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.15 \end{minted}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
./all_study_guide.tex:15: Extra \endgroup.
<recently read> \endgroup
l.15 \end{minted}
Things are pretty mixed up, but I think the worst is over.
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/C628629981CF55D032F3C98601789CD4D33F5A877DB1AF49890DD2495A2B2021.pygtex
(./_minted-all_study_guide/default-pyg-prefix.pygstyle) (./_minted-all_study_guide/default.pygstyle) (./_minted-all_study_guide/1EA929CD2BF2BD3C2D3687421C563BBA6CD81CFDCB5F0793F497D493F610EBFB.pygtex
LaTeX Font Info: Font shape `OT1/cmtt/bx/n' in size <10> not available
(Font) Font shape `OT1/cmtt/m/n' tried instead on input line 4.
(Font) Font shape `OT1/cmtt/m/n' tried instead on input line 2.
)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/E3B732DDE840FC16773250F77F310BC0DB87068ADF79CDCF84312BB9FF189355.pygtex)
(./_minted-all_study_guide/1B3C5941AD6C1BB61D97C2CCAF2710626CD81CFDCB5F0793F497D493F610EBFB.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/AB4D65C4143175A385628621875BE9EC6CD81CFDCB5F0793F497D493F610EBFB.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/06E8C62ECB8CF47D4B0B17F6E88F27B46CD81CFDCB5F0793F497D493F610EBFB.pygtex [1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}])
\openout5 = `all_study_guide.pyg'.
(./_minted-all_study_guide/01BAD6EA5069C485AE1342E9AAC656366CD81CFDCB5F0793F497D493F610EBFB.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/4717C2ABD5C82EEB681B252965F4CD466CD81CFDCB5F0793F497D493F610EBFB.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/8D00AD237703CBE4A4F273951D0EF2116CD81CFDCB5F0793F497D493F610EBFB.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/E47DECE261F6BDAFE988FE188C0AEBDA6CD81CFDCB5F0793F497D493F610EBFB.pygtex [2])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/7D06FEC69347AFA3186649DC3C1DBCA06CD81CFDCB5F0793F497D493F610EBFB.pygtex)
\openout5 = `all_study_guide.pyg'.
(./_minted-all_study_guide/996946FE6590634B25B353ADBDFFABC86CD81CFDCB5F0793F497D493F610EBFB.pygtex)
LaTeX Font Info: Try loading font information for TS1+cmr on input line 122.
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
) [3]
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/C628629981CF55D032F3C98601789CD46CD81CFDCB5F0793F497D493F610EBFB.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/E3B732DDE840FC16773250F77F310BC04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex)
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 41.
(Font) <7> on input line 153.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 41.
(Font) <5> on input line 153.
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/2963A23D45F46549918EDF3D70E4CF9ADB87068ADF79CDCF84312BB9FF189355.pygtex [1
(./_minted-all_study_guide/2963A23D45F46549918EDF3D70E4CF9A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex [4])
\openout3 = `all_study_guide.pyg'.
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}])
(./_minted-all_study_guide/E52FDF8B16A930D9CB0D715D43B382B6A15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/E52FDF8B16A930D9CB0D715D43B382B6F1F23DCF748988B03E34A24BA5282B82.pygtex)
(./_minted-all_study_guide/9D438906527FBE7B7EFB20FB20502428A15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/9D438906527FBE7B7EFB20FB20502428F1F23DCF748988B03E34A24BA5282B82.pygtex)
(./_minted-all_study_guide/EE396F4F7DDCDDD92E3D7FB81D4371F3A15C0CEA82421F045DAF380F7E860C2A.pygtex [5])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/EE396F4F7DDCDDD92E3D7FB81D4371F3F1F23DCF748988B03E34A24BA5282B82.pygtex [2])
(./_minted-all_study_guide/4AF490FEA182ADBF31D67A1B254CF9DFA15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/4AF490FEA182ADBF31D67A1B254CF9DFF1F23DCF748988B03E34A24BA5282B82.pygtex)
(./_minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex [6])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/87BA332A2091250B02A456556DB5A659F2CA81E7B26B3986E5291D03C014E77B.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AF1F23DCF748988B03E34A24BA5282B82.pygtex [3])
(./_minted-all_study_guide/72D37D2B01BA483F7A5BD40BD6BB278EF2CA81E7B26B3986E5291D03C014E77B.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/87BA332A2091250B02A456556DB5A6596F6B7FA5EE8EA4AC82C8E3C74C760408.pygtex)
(./_minted-all_study_guide/F6F9C282D0607C1297F7BD79058D6E2B465A516120F3196FA8E2CA26C46A5C64.pygtex [7])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/72D37D2B01BA483F7A5BD40BD6BB278E6F6B7FA5EE8EA4AC82C8E3C74C760408.pygtex)
(./_minted-all_study_guide/2EEB3A010C71E706DCBB719B2551C060465A516120F3196FA8E2CA26C46A5C64.pygtex [8])
\openout5 = `all_study_guide.pyg'.
(./_minted-all_study_guide/F95EEB5DBC5CAC0C96CDFF57347261BB465A516120F3196FA8E2CA26C46A5C64.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/F6F9C282D0607C1297F7BD79058D6E2BE04FAC3F4FD90B26ADE88A1E706A08A2.pygtex [4])
(./_minted-all_study_guide/CEBB2E4153930A8AB1FA44928D66F94CA15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/2EEB3A010C71E706DCBB719B2551C060E04FAC3F4FD90B26ADE88A1E706A08A2.pygtex [5])
(./_minted-all_study_guide/5B8FDFBCF96E776350835B2A51C36EEBF2CA81E7B26B3986E5291D03C014E77B.pygtex [9])
\openout5 = `all_study_guide.pyg'.
(./_minted-all_study_guide/F95EEB5DBC5CAC0C96CDFF57347261BBE04FAC3F4FD90B26ADE88A1E706A08A2.pygtex) [6] (./all_study_guide.aux)
(./_minted-all_study_guide/FF3902625C50950847A6A70A8600D59DF2CA81E7B26B3986E5291D03C014E77B.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/EE2D7538D96D4B5E2BC4B913B41FC366465A516120F3196FA8E2CA26C46A5C64.pygtex) [10]
Overfull \hbox (5.08403pt too wide) in paragraph at lines 394--397
\OT1/cmr/m/n/10 Call-by-value means that ev-ery-thing is copied upon en-ter-ing a func-tion.Languages
[]
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/3B10F88D8DCED974CDD9946B53C2D9666CD81CFDCB5F0793F497D493F610EBFB.pygtex [11]) [12] [13] (./all_study_guide.aux)
runsystem(rm all_study_guide.pyg)...executed.
)
Here is how much of TeX's memory you used:
6742 strings out of 492982
112488 string characters out of 6138580
215817 words of memory out of 5000000
10192 multiletter control sequences out of 15000+600000
5829 words of font info for 22 fonts, out of 8000000 for 9000
6802 strings out of 492982
117539 string characters out of 6138580
217641 words of memory out of 5000000
10207 multiletter control sequences out of 15000+600000
6175 words of font info for 23 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
37i,5n,35p,857b,345s stack positions out of 5000i,500n,10000p,200000b,80000s
{/usr/share/texmf-dist/fonts/enc/dvips/cm-super/cm-super-ts1.enc}</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmitt10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb></usr/share/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb>
Output written on all_study_guide.pdf (6 pages, 104585 bytes).
37i,5n,35p,857b,339s stack positions out of 5000i,500n,10000p,200000b,80000s
{/usr/share/texmf-dist/fonts/enc/dvips/cm-super/cm-super-ts1.enc}</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmitt10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb></usr/share/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb>
Output written on all_study_guide.pdf (13 pages, 138751 bytes).
PDF statistics:
52 PDF objects out of 1000 (max. 8388607)
36 compressed objects within 1 object stream
84 PDF objects out of 1000 (max. 8388607)
59 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
No preview for this file type
......@@ -5,14 +5,126 @@
\begin{document}
Gautham Velchuru
\section{Racket}
\subsection{Lists}
Lists are made with either the list constructor or with cons:
\begin{minted}{racket}
(define x (list y z))
(define x (cons (cons z '())) ; '() is empty list
\end{minted}
We can navigate these with car for first element, cdr for tail, cadr for head of tail, etc.
\section{Scoping}
Everything is lexically scoped in Racket within the environment. However, the environment itself can mean different things.
\subsection{Parameters}
%TODO: something about dynamic binding
\subsection{Let}
\begin{minted}{racket}
(define x 10)
(define y 5)
(let ([x 15]
[y (+ x 5)])
y)
\end{minted}
This prints 15, as the variables in the let are defined in terms of the outer scope.
\subsection{Let*}
In let*, the above function would print 20, as each binding is evaluated one by one.
\subsection{letrec}
Letrec allows for recursive definitions without order mattering:
\begin{minted}{racket}
(letrec ([is-even? (lambda (n)
(or (zero? n)
(is-odd? (sub1 n))))]
[is-odd? (lambda (n)
(and (not (zero? n))
(is-even? (sub1 n))))])
\end{minted}
\subsection{Eval/Apply}
Eval takes a literal and evaluates it, while apply applies a function to arguments:
\begin{minted}{racket}
(eval '(+ 1 2)) ;; returns 3
(apply + '(1 2 3)) ;; returns 6
\end{minted}
\subsection{Program/Data equivalence}
All programs in Racket are equivalent to data - a function call is essentially calling eval or apply to arguments. This makes
writing parsers or metalanguages in Racket very easy.
\subsection{Side effects}
You can do side effects in Racket with certain functions which have ! in them: for example, one could call \mint{racket}|(set! p 5)| and if there was a
global variable p, it would be set to 5.
\subsection{Delay}
You can use force and delay to delay evaluation: