I'm now leading engineering at a startup with an established Python &
Flask infrastructure, and happen to urgently need an additional dynamic
Web service backend that's separate from the rest of our
infrastructure... While I could do it in Flask, I was thinking that
this might also be an
`(List* T)` is the same as `T`, just as `(list* x)` is the same as `x`
(whether `x` is a list or not).
> (require typed/racket)
> (list* 4 5 6)
- : (List* Positive-Byte Positive-Byte Positive-Byte)
'(4 5 . 6)
> (list* 6)
- : Integer [more precisely: Positive-Byte]
6
> (:type
`(List* T)` is just `T`. This follows the behavior of the `list*`
function, where `(list* 5)` produces 5.
You can explore this using the `:type` form at the REPL. For example,
```
> (:type (List* String))
String
> (:type (List* String String))
(Pairof String String)
> (:type (List* String (List
On Wed, Jun 03, 2020 at 04:22:41PM +0100, Stephen De Gabrielle wrote:
> Hi Hendrik,
>
> I can't see the example you mention in
> https://docs.racket-lang.org/ts-reference/type-ref.html#%28form._%28%28lib._typed-racket%2Fbase-env%2Fbase-types-extra..rkt%29._.List%2A%29%29
>
> i'm assuming (List*
At Fri, 29 May 2020 09:25:58 -0700 (PDT), Thomas Dickerson wrote:
> On Friday, May 29, 2020 at 11:29:38 AM UTC-4, Matthew Flatt wrote:
> > DrRacket uses `pretty-print`, which will print numbers using
> > `number->string`, and so (I think) won't go through your parameter.
>
> This sounds like a
Hi Hendrik,
I can't see the example you mention in
https://docs.racket-lang.org/ts-reference/type-ref.html#%28form._%28%28lib._typed-racket%2Fbase-env%2Fbase-types-extra..rkt%29._.List%2A%29%29
i'm assuming (List* c) is shorthand for (Pair c null)? I don't know typed
racket so I've probably got
Isn't that just match with the == pattern?
(let ([x 'foo])
(match 'foo
[(== x) 'got-foo]
['x 'got-quote-x])) ; => 'got-foo
On Monday, June 1, 2020 at 11:54:01 AM UTC-7, cwebber wrote:
>
> As I started typing this email and looking into the definition of case,
> I realized my
Nope. A well-designed replacement for those APIs is sorely needed.
On Tuesday, June 2, 2020 at 6:37:17 PM UTC-7, Alex Harsanyi wrote:
>
>
> Are there alternatives to the `folds-test-suite` and `fold-test-results`
> functions, for people who want to write their own test running and
> reporting
8 matches
Mail list logo