conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add test for function sugar syntax\n"
},
{
"from": "human",
"value": "import \"std/test\"\n\ntest.run(\"Simple fntion call\", fn(assert) {\n const somefn = fn(arg1) {\n arg1\n }\n\n assert.isEq(somefn('Hello'), 'Hello')\n})\n\ntest.run(\"Simple fntio... | inform-7 | chosen |
[
{
"from": "human",
"value": "Add example with Fibonacci sequence\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2017, Lee Keitel\n * This file is released under the BSD 3-Clause license.\n *\n * This file demonstrates recursion using the Fibonacci sequence.\n */\n\nfunc fib(x) {\n if ... | inform-7 | chosen |
README.md exists but content is empty.
- Downloads last month
- 5