laurent.orseau
2019-12-10 11:15:37

Maybe i missed something but can’t you yield a list directly instead?


laurent.orseau
2019-12-10 11:17:15

And then in-generator which should avoid the need for (in-range 3) i think



soegaard2
2019-12-10 14:34:43

Personally, I like ’todo


gknauth
2019-12-10 16:21:15

I have n lists: list1 list2 … listn. I want to do a zip, (map list list1 list2 … listn), but what I have is (list list1 list2 … listn). How can I do that (drop the contents of the list into (map list _) ? Maybe I need more coffee.


samth
2019-12-10 16:25:13

@gknauth (apply map list l)


gknauth
2019-12-10 16:31:15

Thanks so much @samth !


laurent.orseau
2019-12-10 17:31:20

… which should be called transpose :slightly_smiling_face:


notjack
2019-12-10 18:26:11

or use a matrix / 2d array data structure


elyandarin
2019-12-10 20:11:38

lex works well by itself, but plugging it into apply-tokenizer-maker, there’s an error:

position-token-token: contract violation expected: position-token? given: #<eof>

If I understand it correctly, the lexer goes through the text until it returns eof, and then apply-tokenizer-maker is supposed to quit, but position-token-token, in the middle, can’t handle eof. Correct?


elyandarin
2019-12-10 20:13:15

BTW, what’s position-token-token? When I try to find documentation for it, I just find position-token.


elyandarin
2019-12-10 20:21:33

I guess I should wrap something around (lex/src in) to remove eof?


saronson
2019-12-10 20:37:33

@saronson has joined the channel


sorawee
2019-12-11 02:23:35

There’s in-values-sequence !


sorawee
2019-12-11 02:24:03

@laurent.orseau in-generator doesn’t quite work since I also really need this thing as a generator in some context


sorawee
2019-12-11 02:26:15

Also, it’s true that if I am at the generator side, I can yield lists instead. But I might not have a control over the generator.


notjack
2019-12-11 04:33:01

While trying to understand continuations, I ended up building some simple control flow structures with them in order to teach myself how to use them. I wrote them up in a gist for anyone interested: https://gist.github.com/jackfirth/027411d567385dadb3202bee75a847b4


notjack
2019-12-11 04:33:56

Advice greatly welcomed!


sorawee
2019-12-11 05:48:57

Is there a better way to produce a sequence of multiple values that is easier than using in-generator ? I tried really hard to read the documentation of make-do-sequence but I eventually gave up every time…