Skip to content

Commit

Permalink
tweak: implement double as test
Browse files Browse the repository at this point in the history
  • Loading branch information
kanersps committed Sep 14, 2021
1 parent 3da18ad commit 91bf3f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/double.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export fun(x) {
return x * 2
}
4 changes: 3 additions & 1 deletion std.lp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import "./modules/for-loop.lp" as for
import "./modules/print.lp" as println
import "./modules/double.lp" as double

export {
"for": for,
"println": println
"println": println,
"double": double
}

0 comments on commit 91bf3f5

Please sign in to comment.