Skip to content

Commit

Permalink
Adds bolson
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesol committed Apr 16, 2024
1 parent a90f6cd commit a96c3be
Show file tree
Hide file tree
Showing 5 changed files with 941 additions and 12 deletions.
1 change: 0 additions & 1 deletion ocarina/spago.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package:
- "arraybuffer-types"
- "arrays"
- "debug"
- "bolson"
- "console"
- "control"
- "convertable-options"
Expand Down
17 changes: 17 additions & 0 deletions ocarina/src/Bolson/Control.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export function mutAr(a) {
return () => {
return a.slice();
};
}

export function unsafeUpdateMutAr(i) {
return (v) => (a) => () => {
a[i] = v;
};
}

export function readAr(a) {
return () => {
return a.slice();
};
}
Loading

0 comments on commit a96c3be

Please sign in to comment.