Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional Library #76

Open
wants to merge 19 commits into
base: release-1.0.0
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
initialize fn.of
ConorOBrien-Foxx committed Aug 14, 2016
commit a413e81b8221a87cd7fb1a8bc1957849adb4e0d8
3 changes: 2 additions & 1 deletion src/stdlib/ns/fn.es6
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ export default function(cheddar){
["curry", cheddar.from(require("./fn/curry"))],
["bind", cheddar.from(require("./fn/bind"))],
["rev", cheddar.from(require("./fn/rev"))],
["repeat", cheddar.from(require("./fn/repeat"))]
["repeat", cheddar.from(require("./fn/repeat"))],
["of", cheddar.from(require("./fn/of"))]
]);
}
12 changes: 12 additions & 0 deletions src/stdlib/ns/fn/of.es6
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default function insert(cheddar) {
return new cheddar.func(
[
["str", {
Type: cheddar.string
}],
],
function(scope, input){
let str = input("str");
}
);
}