-
`Posn` struct is `i32` but should really be `u32` if it's position
Also, the sdl2 `Point` struct basically does everything we want `Posn` to do, with some extra functionality we don't have to imple…
-
https://github.com/braverock/blotter/blob/bc75cf57b1a3d17561f026685f2c2c7c33d011f5/R/chart.Posn.R#L67
This line causes an initial artificial drawdown the size of the maximum cumulative PL to happen…
-
_Issue [JP-3481](https://jira.stsci.edu/browse/JP-3481) was created on JIRA by [Sarah Kendrew](https://jira.stsci.edu/secure/ViewProfile.jspa?name=skendrew):_
The change implemented with JP-3244 im…
-
```
> (struct posn (x y) #:prefab)
> (define posn->string-lens (prefab-struct-isomorphism-lens posn))
> (lens-view posn->string-lens (posn 1 2))
"#s(posn 1 2)"
> (lens-set posn->string-lens (posn 1 2)…
-
In common cases `(posn-at-point)` returns structure like:
`(# 90 (0 . 100) 0 nil 90 (0 . 5) nil (0 . 0) (10 . 20))`
In rare cases `(posn-at-point)` returns:
`(# nil (0 . 0) 0)`
E.g. after `^L` ch…
-
```
data Posn:
| posn(x :: Number, y :: Number)
end
fun move-up(w):
w.{x: w.x + 1}
end
```
```
> posn(2, 3)
posn(2, 3)
> move-up(posn(2, 3))
{x: 3, y: 3, $fieldNames: [
"x",
"y"
], _match: }…
-
The `up_by()`, `down_by()`, etc. "shifting member functions" for `Posn` construct a new `Posn` modified from the existing one as specified. I've found that this doesn't match student's expectations th…
-
Ok finally found time to create reproducible example on this error which I seem to encounter randomly. On most periods zoom_Chart works but sometimes I get this error:
> Error in plot.window(c(1, 61)…
-
The `simple-result->` contract should maybe stop using `with-contract-continuation-mark` (`wccm`) to run as quickly as possible.
Here is one program where `wccm` adds zero benefit but has big costs…
-
This is something I implemented in my `ease` package:
``` racket
> (lens-fragment first-lens '(1 foo bar) '(10 20 30))
'((10 foo bar) (20 foo bar) (30 foo bar))
```
Basically you can take a lens, a …