From eac284d17b14eb4602387eb47c644fcf4f6e86c0 Mon Sep 17 00:00:00 2001 From: seh Date: Mon, 11 Mar 2019 04:09:58 -0500 Subject: add beginnings of a generics example --- Generics/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Generics/README.md (limited to 'Generics/README.md') diff --git a/Generics/README.md b/Generics/README.md new file mode 100644 index 0000000..c381e29 --- /dev/null +++ b/Generics/README.md @@ -0,0 +1,22 @@ +# Generics + + + +Warning: This is an example about an undocumented feature of Limbo. All assertions or explanations provided are considered conjecture until proven otherwise. + +## Source + +### + +## Demo + +## Exercises + +- Can you find a way to make the eq() function do a deep comparison of Int's? +- Try removing the `.String` from the `words` definition, what happens? +- Try removing `ref anywhere, see what happens. + +## References + +- https://github.com/caerwynj/inferno-lab/blob/master/27/sexprs.b +- https://github.com/caerwynj/inferno-lab/blob/master/78/README.md -- cgit v1.2.3