aboutsummaryrefslogtreecommitdiff
path: root/src/lambda.rs
diff options
context:
space:
mode:
authorTill Höppner2016-03-09 21:27:17 +0100
committerTill Höppner2016-03-09 21:27:17 +0100
commitc7f8c7e985173e504191b95286f53e0927db2d78 (patch)
tree360f8a90b79fa32e363c7f9e3a78d62027ad8d17 /src/lambda.rs
parentb402a084e7d7bbeb59d58e400fadb7bbdbf0e699 (diff)
downloadilc-c7f8c7e985173e504191b95286f53e0927db2d78.tar.gz
ilc-c7f8c7e985173e504191b95286f53e0927db2d78.tar.xz
ilc-c7f8c7e985173e504191b95286f53e0927db2d78.zip
[ci skip] Remove accidentally commited scratch files
Diffstat (limited to 'src/lambda.rs')
-rw-r--r--src/lambda.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lambda.rs b/src/lambda.rs
deleted file mode 100644
index cf7b1ec..0000000
--- a/src/lambda.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// I'm only a little sorry for this.
-
-// Inline definition of anonymous functions. Examples:
-// l!(42;)
-// l!(i32 := 42)
-// l!(i: i32 := i + 42)
-// l!(i: i32, j: i32 -> i32 := i + j)
-#[macro_export]
-macro_rules! l {
- ($body: expr) => ({ fn f() { $body } f });
- ($res: ty := $body: expr) => ({ fn f() -> $res { $body } f });
- ($($n: ident: $t: ty),+ := $body: expr) => ({
- fn f($($n: $t),+) { $body } f
- });
- ($($n: ident: $t: ty),+ -> $res: ty := $body: expr) => ({
- fn f($($n: $t),+) -> $res { $body } f
- })
-}