Skip to content

Commit

Permalink
tweak: add println
Browse files Browse the repository at this point in the history
  • Loading branch information
kanersps committed Sep 14, 2021
1 parent c4cb35b commit 3da18ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/print.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var println = fun(x) {
print(x, "\n")
}

export println
4 changes: 3 additions & 1 deletion std.lp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import "./modules/for-loop.lp" as for
import "./modules/print.lp" as println

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

0 comments on commit 3da18ad

Please sign in to comment.