2017-05-25T00:03:32Z hugo_dc quit (Quit: Leaving) 2017-05-25T00:15:54Z emacsomancer quit (Remote host closed the connection) 2017-05-25T00:16:15Z dbmikus joined #scheme 2017-05-25T00:22:26Z cemerick joined #scheme 2017-05-25T00:22:27Z lambda-11235 joined #scheme 2017-05-25T00:23:44Z emacsomancer joined #scheme 2017-05-25T01:03:48Z cemerick quit (Ping timeout: 240 seconds) 2017-05-25T01:15:32Z lritter_ quit (Ping timeout: 246 seconds) 2017-05-25T01:40:35Z cromachina joined #scheme 2017-05-25T02:02:47Z jaziz quit (Ping timeout: 246 seconds) 2017-05-25T02:12:28Z enderby quit (Quit: ERC (IRC client for Emacs 25.2.1)) 2017-05-25T02:13:34Z Riastradh joined #scheme 2017-05-25T02:16:02Z ArneBab_ joined #scheme 2017-05-25T02:19:14Z pjb quit (Ping timeout: 246 seconds) 2017-05-25T02:20:47Z ArneBab quit (Ping timeout: 272 seconds) 2017-05-25T02:26:47Z jaziz joined #scheme 2017-05-25T02:33:00Z ertes joined #scheme 2017-05-25T02:34:41Z sleffy joined #scheme 2017-05-25T02:42:59Z pilne quit (Quit: Quitting!) 2017-05-25T02:56:58Z sleffy quit (Ping timeout: 260 seconds) 2017-05-25T03:06:55Z badkins quit (Remote host closed the connection) 2017-05-25T03:11:26Z sleffy joined #scheme 2017-05-25T03:12:00Z noethics quit (Remote host closed the connection) 2017-05-25T03:16:13Z pjb joined #scheme 2017-05-25T03:24:35Z pjb quit (Ping timeout: 260 seconds) 2017-05-25T03:24:43Z ertesx joined #scheme 2017-05-25T03:27:08Z ertes quit (Ping timeout: 246 seconds) 2017-05-25T03:27:08Z ertesx is now known as ertes 2017-05-25T03:54:47Z sondr3 quit (Ping timeout: 246 seconds) 2017-05-25T04:05:47Z emacsoma` quit (Remote host closed the connection) 2017-05-25T04:14:37Z pierpa quit (Remote host closed the connection) 2017-05-25T04:18:03Z jonaslund quit (Ping timeout: 260 seconds) 2017-05-25T04:22:31Z lambda-11235 quit (Quit: WeeChat 1.8) 2017-05-25T04:23:23Z dbmikus quit (Quit: WeeChat 1.7) 2017-05-25T04:23:55Z jao quit (Ping timeout: 255 seconds) 2017-05-25T04:45:12Z p9s joined #scheme 2017-05-25T04:58:09Z p9s_ joined #scheme 2017-05-25T04:58:19Z p9s quit (Read error: Connection reset by peer) 2017-05-25T05:17:20Z igajsin1 joined #scheme 2017-05-25T05:26:37Z rocx quit (Ping timeout: 246 seconds) 2017-05-25T05:43:48Z jonaslund joined #scheme 2017-05-25T05:44:48Z X-Scale quit (Quit: HydraIRC -> http://www.hydrairc.com <- Would you like to know more?) 2017-05-25T05:47:07Z emacsoma` joined #scheme 2017-05-25T06:21:49Z pjb joined #scheme 2017-05-25T06:31:55Z shdeng joined #scheme 2017-05-25T06:36:53Z sleffy quit (Ping timeout: 260 seconds) 2017-05-25T08:36:21Z jmd` joined #scheme 2017-05-25T08:39:56Z jmd` quit (Remote host closed the connection) 2017-05-25T08:42:44Z jmd` joined #scheme 2017-05-25T08:48:33Z qu1j0t3 quit (Ping timeout: 268 seconds) 2017-05-25T08:49:05Z jmd` quit (Remote host closed the connection) 2017-05-25T09:15:50Z cemerick joined #scheme 2017-05-25T09:21:29Z jmd` joined #scheme 2017-05-25T09:26:30Z DKordic joined #scheme 2017-05-25T09:27:01Z cemerick quit (Ping timeout: 240 seconds) 2017-05-25T09:27:11Z cemerick joined #scheme 2017-05-25T09:28:08Z jonaslund quit (Ping timeout: 260 seconds) 2017-05-25T09:54:38Z daviid quit (Ping timeout: 258 seconds) 2017-05-25T10:01:34Z qu1j0t3 joined #scheme 2017-05-25T10:03:19Z p9s_ quit (Remote host closed the connection) 2017-05-25T10:03:57Z p9s joined #scheme 2017-05-25T10:08:32Z p9s quit (Ping timeout: 255 seconds) 2017-05-25T10:08:48Z jaziz1 joined #scheme 2017-05-25T10:11:33Z jaziz quit (Ping timeout: 260 seconds) 2017-05-25T10:23:13Z kammd joined #scheme 2017-05-25T10:33:59Z p9s joined #scheme 2017-05-25T10:36:31Z p9s quit (Read error: Connection reset by peer) 2017-05-25T10:36:42Z p9s joined #scheme 2017-05-25T10:41:17Z p9s quit (Read error: Connection reset by peer) 2017-05-25T10:41:29Z p9s joined #scheme 2017-05-25T10:43:56Z p9s quit (Read error: Connection reset by peer) 2017-05-25T10:44:28Z p9s joined #scheme 2017-05-25T10:45:19Z TCZ joined #scheme 2017-05-25T10:48:53Z p9s quit (Ping timeout: 260 seconds) 2017-05-25T10:50:45Z CORDIC joined #scheme 2017-05-25T10:52:05Z DKordic quit (Ping timeout: 240 seconds) 2017-05-25T10:52:10Z pierpa joined #scheme 2017-05-25T10:55:16Z jonaslund joined #scheme 2017-05-25T10:56:53Z TCZ quit (Quit: Leaving) 2017-05-25T11:00:04Z muelleme joined #scheme 2017-05-25T11:04:22Z jmd quit (Remote host closed the connection) 2017-05-25T11:22:20Z jmd` quit (Remote host closed the connection) 2017-05-25T11:31:28Z jaziz1 quit (Ping timeout: 260 seconds) 2017-05-25T11:43:19Z shdeng quit (Quit: Leaving) 2017-05-25T11:44:43Z p9s joined #scheme 2017-05-25T11:45:28Z bjz joined #scheme 2017-05-25T11:49:51Z p9s quit (Ping timeout: 268 seconds) 2017-05-25T11:52:02Z jmd joined #scheme 2017-05-25T12:19:28Z nanoz joined #scheme 2017-05-25T12:34:07Z p9s joined #scheme 2017-05-25T12:34:35Z brendyn is now known as brendyyn 2017-05-25T12:45:06Z lritter_ joined #scheme 2017-05-25T12:57:32Z jmd quit (Remote host closed the connection) 2017-05-25T13:11:46Z ertes quit (Ping timeout: 246 seconds) 2017-05-25T13:11:57Z Riastradh quit (Ping timeout: 240 seconds) 2017-05-25T13:18:55Z cromachina quit (Read error: Connection reset by peer) 2017-05-25T13:20:06Z beekill95 joined #scheme 2017-05-25T13:36:47Z sondr3 joined #scheme 2017-05-25T13:42:22Z sondr3 quit (Ping timeout: 255 seconds) 2017-05-25T13:49:39Z dcluna quit (Quit: ZNC - http://znc.in) 2017-05-25T13:53:16Z dcluna joined #scheme 2017-05-25T13:54:16Z dcluna quit (Client Quit) 2017-05-25T13:55:02Z cemerick quit (Ping timeout: 268 seconds) 2017-05-25T13:55:13Z badkins joined #scheme 2017-05-25T13:58:18Z bjz_ joined #scheme 2017-05-25T14:00:12Z bjz quit (Ping timeout: 260 seconds) 2017-05-25T14:04:13Z pierpa quit (Remote host closed the connection) 2017-05-25T14:07:59Z kvda_ quit (Quit: Textual IRC Client: www.textualapp.com) 2017-05-25T14:08:57Z p9s quit (Remote host closed the connection) 2017-05-25T14:09:31Z p9s joined #scheme 2017-05-25T14:09:36Z gravicappa joined #scheme 2017-05-25T14:11:27Z nanoz] joined #scheme 2017-05-25T14:11:41Z nanoz] quit (Read error: Connection reset by peer) 2017-05-25T14:14:12Z p9s quit (Ping timeout: 260 seconds) 2017-05-25T14:34:36Z jao joined #scheme 2017-05-25T14:36:23Z Riastradh joined #scheme 2017-05-25T14:39:49Z bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2017-05-25T14:47:19Z p9s joined #scheme 2017-05-25T14:47:20Z p9s quit (Remote host closed the connection) 2017-05-25T14:47:39Z p9s joined #scheme 2017-05-25T14:48:09Z p9s quit (Remote host closed the connection) 2017-05-25T14:48:24Z p9s joined #scheme 2017-05-25T14:48:57Z p9s quit (Remote host closed the connection) 2017-05-25T14:49:14Z p9s joined #scheme 2017-05-25T14:49:45Z p9s quit (Remote host closed the connection) 2017-05-25T14:50:00Z p9s joined #scheme 2017-05-25T14:50:33Z p9s quit (Remote host closed the connection) 2017-05-25T14:50:50Z p9s joined #scheme 2017-05-25T14:51:21Z p9s quit (Remote host closed the connection) 2017-05-25T14:51:23Z Khisanth quit (Ping timeout: 246 seconds) 2017-05-25T14:54:51Z Riastradh quit (Ping timeout: 268 seconds) 2017-05-25T15:02:45Z bjz joined #scheme 2017-05-25T15:05:05Z Khisanth joined #scheme 2017-05-25T15:12:06Z sz0 quit (Quit: Connection closed for inactivity) 2017-05-25T15:14:08Z X-Scale joined #scheme 2017-05-25T15:16:15Z Riastradh joined #scheme 2017-05-25T15:17:11Z bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2017-05-25T15:25:27Z Riastradh quit (Ping timeout: 258 seconds) 2017-05-25T15:29:08Z dbmikus joined #scheme 2017-05-25T15:32:28Z emacsoma` quit (Ping timeout: 268 seconds) 2017-05-25T15:35:00Z sethalves quit (Quit: Leaving.) 2017-05-25T15:47:53Z jao quit (Ping timeout: 268 seconds) 2017-05-25T15:52:24Z pierpa joined #scheme 2017-05-25T15:58:48Z jcowan: wasamasa: why not ssql? It's analogous to irregex, although there is the problem of multiple SQL dialects. 2017-05-25T16:01:48Z k77 joined #scheme 2017-05-25T16:02:15Z k77 quit (Client Quit) 2017-05-25T16:02:47Z justinethier joined #scheme 2017-05-25T16:02:57Z wasamasa: jcowan: that's a huge problem, yes 2017-05-25T16:03:57Z pierpa quit (Ping timeout: 240 seconds) 2017-05-25T16:04:44Z wasamasa: jcowan: the common subset isn't terribly useful as demonstrated by activerecord and friends, I'd either use the full feature set or something entirely different (along the lines of arel) 2017-05-25T16:05:27Z jcowan: I'd like to have a relational algebra too, but WG2 shot it down. Still, they shot down sets too before voting them up again. 2017-05-25T16:07:33Z beekill95 quit (Remote host closed the connection) 2017-05-25T16:17:10Z sethalves joined #scheme 2017-05-25T16:17:15Z OjD joined #scheme 2017-05-25T16:19:31Z OjD: Hello, I am trying to write a procedure that takes two arguments: 1- a format string (e.g "~a : ~a") and 2- list of values (e.g '((1 2 3 4) (a b c d))) 2017-05-25T16:19:57Z OjD: and I would like to produce (1:a 2:b 3:c 4:d) 2017-05-25T16:20:33Z OjD: my issue is that the format can have variable arguments and therefore the list of values can be of different lengths 2017-05-25T16:21:16Z wasamasa: use zip and apply 2017-05-25T16:21:29Z OjD: I am using DrRacket 2017-05-25T16:22:06Z OjD: the closest I got is 2017-05-25T16:22:51Z OjD: (for-each (λ(lst)(apply (λ(x y)(printf "~a:~a\n" x y)) lst)) '((1 2) (gpm gfd))) 2017-05-25T16:25:22Z OjD: but it only works for two variables, if I want a third ("~a:~a:~a) I would need to rewrite the lambda function 2017-05-25T16:26:17Z OjD: any suggestion? 2017-05-25T16:32:33Z wasamasa: the result should be a list of strings? 2017-05-25T16:34:43Z OjD: not really, I just have x number of vectors that are related and I need a way to print each row combined 2017-05-25T16:34:43Z wasamasa: (map (lambda (arg) (apply format "~a: ~a" arg)) (apply zip '((1 2 3 4) (a b c d)))) 2017-05-25T16:35:18Z wasamasa: replace map by for-each and format by printf 2017-05-25T16:35:43Z wasamasa: also, it should be args to denote this is a list of arguments 2017-05-25T16:37:36Z nanoz quit (Quit: <3) 2017-05-25T16:39:20Z OjD: thanks wasamasa 2017-05-25T16:44:20Z OjD: if I want to have the format string as another variable 2017-05-25T16:44:25Z OjD: ((λ(txt lst)(map (λ(arg)(apply format txt arg)) lst)) "~a: ~a" (apply zip '((1 2 3 4) (a b c d)))) 2017-05-25T16:48:26Z daviid joined #scheme 2017-05-25T16:51:28Z wasamasa: just turn it into a function 2017-05-25T16:52:28Z wasamasa: (define (display-lists format lists) (for-each (lambda (args) (apply printf format args)) (apply zip lists))) 2017-05-25T16:53:10Z wasamasa: (display-lists "~a: ~a\n" '((1 2 3 4) (a b c d))) 2017-05-25T16:53:46Z OjD: I was doing something similar 2017-05-25T16:53:58Z OjD: https://thepasteb.in/p/GZhWXLKwZnAFV 2017-05-25T16:54:38Z OjD: thank you very much wasamasa 2017-05-25T16:58:10Z wasamasa: you're welcome :> 2017-05-25T17:06:44Z sleffy joined #scheme 2017-05-25T17:11:50Z pilne joined #scheme 2017-05-25T17:16:40Z OjD left #scheme 2017-05-25T17:43:28Z cemerick joined #scheme 2017-05-25T17:49:16Z jaziz joined #scheme 2017-05-25T17:56:46Z hive-mind quit (Remote host closed the connection) 2017-05-25T17:58:42Z hive-mind joined #scheme 2017-05-25T18:01:17Z alezost joined #scheme 2017-05-25T18:12:12Z ecraven quit (Quit: bye) 2017-05-25T18:12:31Z jmd joined #scheme 2017-05-25T18:12:56Z jmd quit (Remote host closed the connection) 2017-05-25T18:13:52Z ecraven joined #scheme 2017-05-25T18:15:48Z jaziz quit (Ping timeout: 240 seconds) 2017-05-25T18:23:35Z leppie quit (Ping timeout: 240 seconds) 2017-05-25T18:24:35Z noethics joined #scheme 2017-05-25T18:27:48Z leppie joined #scheme 2017-05-25T18:36:56Z jmd joined #scheme 2017-05-25T18:47:07Z noethics quit (Remote host closed the connection) 2017-05-25T18:47:27Z noethics joined #scheme 2017-05-25T18:54:09Z Riastradh joined #scheme 2017-05-25T18:55:44Z p9s joined #scheme 2017-05-25T19:02:19Z p9s quit (Ping timeout: 255 seconds) 2017-05-25T19:04:53Z pierpa joined #scheme 2017-05-25T19:06:36Z kammd quit (Quit: Connection closed for inactivity) 2017-05-25T19:15:47Z sssilver joined #scheme 2017-05-25T19:37:27Z cemerick quit (Ping timeout: 240 seconds) 2017-05-25T19:38:12Z cemerick joined #scheme 2017-05-25T19:50:51Z acarrico quit (Ping timeout: 268 seconds) 2017-05-25T19:58:33Z p9s joined #scheme 2017-05-25T19:59:29Z gnomon quit (Ping timeout: 268 seconds) 2017-05-25T20:03:08Z p9s quit (Ping timeout: 240 seconds) 2017-05-25T20:29:24Z jmd quit (Remote host closed the connection) 2017-05-25T20:34:10Z muelleme quit (Ping timeout: 246 seconds) 2017-05-25T20:44:02Z muelleme joined #scheme 2017-05-25T20:47:30Z ecraven quit (Ping timeout: 240 seconds) 2017-05-25T20:50:28Z ecraven joined #scheme 2017-05-25T20:51:35Z gravicappa quit (Ping timeout: 240 seconds) 2017-05-25T20:53:27Z igajsin1 quit (Ping timeout: 240 seconds) 2017-05-25T20:55:08Z muelleme quit (Ping timeout: 240 seconds) 2017-05-25T20:59:44Z p9s joined #scheme 2017-05-25T21:04:50Z p9s quit (Ping timeout: 246 seconds) 2017-05-25T21:05:19Z Riastradh quit (Ping timeout: 260 seconds) 2017-05-25T21:11:58Z Riastradh joined #scheme 2017-05-25T21:18:25Z cemerick quit (Ping timeout: 268 seconds) 2017-05-25T21:18:42Z cemerick joined #scheme 2017-05-25T21:27:39Z alezost quit (Quit: I live in GuixSD and Emacs ) 2017-05-25T21:29:55Z cemerick quit (Ping timeout: 255 seconds) 2017-05-25T21:38:30Z sssilver quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2017-05-25T21:43:01Z justinethier quit (Quit: Page closed) 2017-05-25T21:44:31Z sleffy quit (Ping timeout: 260 seconds) 2017-05-25T21:55:35Z bjz joined #scheme 2017-05-25T22:00:46Z p9s joined #scheme 2017-05-25T22:02:19Z muelleme joined #scheme 2017-05-25T22:05:27Z p9s quit (Ping timeout: 240 seconds) 2017-05-25T22:06:35Z muelleme quit (Ping timeout: 240 seconds) 2017-05-25T22:24:45Z sleffy joined #scheme 2017-05-25T22:27:24Z jshjsh joined #scheme 2017-05-25T22:30:35Z JoshS quit (Ping timeout: 246 seconds) 2017-05-25T22:38:18Z jaziz joined #scheme 2017-05-25T22:40:55Z sethalves quit (Quit: Leaving.) 2017-05-25T22:42:11Z bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2017-05-25T22:52:16Z pierpa quit (Remote host closed the connection) 2017-05-25T22:52:42Z jcowan quit (Quit: Leaving) 2017-05-25T22:54:36Z n_blownapart joined #scheme 2017-05-25T23:02:05Z p9s joined #scheme 2017-05-25T23:05:31Z dbmikus quit (Quit: WeeChat 1.7) 2017-05-25T23:06:38Z p9s quit (Ping timeout: 246 seconds) 2017-05-25T23:09:55Z Riastradh quit (Ping timeout: 260 seconds) 2017-05-25T23:12:13Z Riastradh joined #scheme 2017-05-25T23:14:58Z daviid quit (Ping timeout: 268 seconds) 2017-05-25T23:25:40Z edgar-rft quit (Quit: lifetime stopped because computation expired) 2017-05-25T23:29:58Z sssilver joined #scheme 2017-05-25T23:40:14Z ertes joined #scheme 2017-05-25T23:44:59Z p9s joined #scheme 2017-05-25T23:45:37Z p9s quit (Remote host closed the connection) 2017-05-25T23:45:53Z p9s joined #scheme 2017-05-25T23:46:25Z p9s quit (Remote host closed the connection) 2017-05-25T23:46:43Z p9s joined #scheme 2017-05-25T23:47:14Z p9s quit (Remote host closed the connection) 2017-05-25T23:47:29Z p9s joined #scheme 2017-05-25T23:48:02Z p9s quit (Remote host closed the connection) 2017-05-25T23:48:19Z p9s joined #scheme 2017-05-25T23:50:49Z p9s quit (Remote host closed the connection) 2017-05-25T23:51:24Z p9s joined #scheme 2017-05-25T23:52:08Z sleffy quit (Ping timeout: 240 seconds) 2017-05-25T23:55:39Z p9s quit (Ping timeout: 260 seconds)