Skip to content

Commit a96c3be

Browse files
committed
Adds bolson
1 parent a90f6cd commit a96c3be

File tree

5 files changed

+941
-12
lines changed

5 files changed

+941
-12
lines changed

ocarina/spago.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ package:
99
- "arraybuffer-types"
1010
- "arrays"
1111
- "debug"
12-
- "bolson"
1312
- "console"
1413
- "control"
1514
- "convertable-options"

ocarina/src/Bolson/Control.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export function mutAr(a) {
2+
return () => {
3+
return a.slice();
4+
};
5+
}
6+
7+
export function unsafeUpdateMutAr(i) {
8+
return (v) => (a) => () => {
9+
a[i] = v;
10+
};
11+
}
12+
13+
export function readAr(a) {
14+
return () => {
15+
return a.slice();
16+
};
17+
}

0 commit comments

Comments
 (0)