Thanks. Also nice. I like the explicit algorithmic approach.
A.
On Sunday, 19 August 2018 03:14:22 UTC+10, ra...@airmail.cc wrote:
>
> > As an example, this...
> >
> > - a
> > - b c
> > - d e f
> > - g h
> >
> > would get transformed into something like this...
> >
> > '(a (b c)
Very nice. The Racket special sauce is the (match*...). I need to get my
head around what's going on there.
A.
On Saturday, 18 August 2018 22:52:51 UTC+10, Jens Axel Søgaard wrote:
>
>
>
> Den lør. 18. aug. 2018 kl. 03.31 skrev Andrew J >:
>
>> Hi. In a little sid
Hendershott provides a parser that create
> HTML like xexprs from a string. The rest would be easy.
>
> https://docs.racket-lang.org/markdown/index.html
>
>
>
> On Fri, Aug 17, 2018 at 8:31 PM, Andrew J > wrote:
> > Hi. In a little side project, I'm looking
Hi. In a little side project, I'm looking for an simple Racket-y way to
transform a bulleted list into a tree structure, maybe like sxml.
As an example, this...
- a
- b c
- d e f
- g h
would get transformed into something like this...
'(a (b c) (d e f (g h)))
I can see a few ways to d
I typically use either threading or composition...
(require threading)
(define (foo x)
(~> x
f g h bar))
or
(define (foo x)
((compose bar h g f) x)
A.
On Sunday, 12 August 2018 00:11:19 UTC+10, Robert Heffernan wrote:
>
> Dear all,
>
> I am new to Racket and only slightly less n
5 matches
Mail list logo