jbr on v0.5.6
jbr on main
push v tag (compare)
jbr on main
prefix tag with v (compare)
delete-merged-branch[bot] on 0.5.6
jbr on main
bump version (compare)
jbr on 0.5.6
bump version (compare)
npm install -g sibilant
, then sibilant
) or locally from the project directory (npm install sibilant
, then npx sibilant
).npx sibilant
Setting up environment with C:\Users\jrickman\env.bat
Error: ENOENT: no such file or directory, open 'undefined/.sibilant.history'
at Object.openSync (fs.js:462:3)
at Object.<anonymous> (C:\Main\Tresor\Dev\stitch-sibilant-challenge\node_modules\sibilant\maps\src\repl.sibilant:26:12)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.cli$repl$ [as repl] (C:\Main\Tresor\Dev\stitch-sibilant-challenge\node_modules\sibilant\maps\src\cli.sibilant:37:7)
at Object.<anonymous> (C:\Main\Tresor\Dev\stitch-sibilant-challenge\node_modules\sibilant\maps\src\cli.sibilant:78:8)
Actually, if you have a moment, I'd appreciate one more thing. I'm trying to do the following:
if (cur in d){
d[cur]+=1
}
else{
d[cur]=0
}
}
But in sibilant. I'm stuck at:
(each str inputStr
(console.log str)
if (has-key? d str) (d[str]+=1) (d[str]=0)
)
(each str input-str
(console.log str)
(set d str (if (has-key? d str)
(+ 1 (get d str))
0)))
(var x [ 4 1 5 2 3])
(.sort x)
(console.log x) ;; ⇒ [ 1 2 3 4 5 ]
(var x [[0 1] [ 3 5] [ 0 0 ]])
(.sort x (#([a b] [c d])
(if (< b d) -1
(= b d) 0
1)))
(console.log x)