00:01:20 -!- civodul [~user@gateway/tor-sasl/civodul] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 00:03:36 -!- kobain [~sambio@unaffiliated/kobain] has quit [Ping timeout: 252 seconds] 00:03:44 kobain_ [~sambio@unaffiliated/kobain] has joined #scheme 00:10:46 -!- bitwize [~bitwize@c-98-216-250-18.hsd1.ma.comcast.net] has quit [Ping timeout: 272 seconds] 00:12:17 bitwize [~bitwize@c-98-216-250-18.hsd1.ma.comcast.net] has joined #scheme 00:19:59 -!- kobain_ is now known as kobain 00:25:08 CaptainLex [~kvirc@67-4-222-202.mpls.qwest.net] has joined #scheme 00:27:52 -!- peterhil [~peterhil@dsl-hkibrasgw3-58c156-108.dhcp.inet.fi] has quit [Ping timeout: 272 seconds] 00:30:34 I'm using scsh; I'm not sure if this is implementation dependent or not. But I have a list of strings and I need to pass them as many individual strings, neither as a list thereof nor a single concatenated string. How might I go about this? 00:30:55 That is to say, pass them as arguments to a function. 00:32:26 CaptainLex: `apply` is the usual way to do this: (apply function (list "of" "strings")) 00:32:27 -!- annodomini [~lambda@wikipedia/lambda] has quit [Quit: annodomini] 00:33:49 evhan: What I mean is, I need to pass them all at once. Well, I suppose need is a strong way to phrase it. In this case the command line argument I'm invoking could be called over again with each member, but in the general case I'd like to be able to send them all at once. 00:33:59 Sadly, I think this is probably a scsh-specific problem 00:34:06 And there is no one in the room there :'( 00:34:21 evhan: but thank you! :) 00:34:22 CaptainLex: That's what apply does. 00:34:48 antoszka: Oh my! I stand corrected. 00:35:26 That's in opposition to a mapping functions that'd pass each argument to the function in turn. 00:39:30 Aha, yes, so my problem is scsh-specific. Off into their depths I go! Thank you both for your help :) 00:39:56 didn't sound ScSh-specific, to me .. 00:41:42 ski: My problem was not solved. The issue that I'm making a call to a binary. I've grabbed up the filenames I need to give the executable, but I can't pass them as a list; I need to pass them as many individual strings. apply doesn't work in this case because it's incompatible with the syntax for making running programs for ScSh 00:41:52 s/for ScSh/from ScSh 00:43:09 hm, if the invoking form for programs in ScSh is a special form, try using a macro version of `apply' ? 00:44:01 That's true! I didn't even think of macros, but this kind of situation might be just the ticket 00:44:08 hm .. or i suppose that wouldn't work in case you don't know the strings statically 00:44:31 (which on hindsight is probably the case, otherwise you could just write them literally) 00:44:37 Granted, this doesn't seem like an edge case to me, so my guess is somewhere in scsh-doc an answer awaits me 00:45:06 i suspect there's some ScSh way of splicing in a list of arguments to the program invoking form, or something equivalent 00:46:25 ski: Very likely. However, extant ScSh scripts are hard to come by, there are no people who use it around, and I have no idea what to search for in the docs! So it's good ol' fashioned elbow-grease. 00:50:08 Aha! Nope, the solution was in scheme48, and is apparently from R6RS 00:50:12 unquote-splicing 00:50:30 yes, i suspected something like that 00:51:14 ,@... 00:51:17 is shorthand for 00:51:27 (unquote-splicing ...) 00:52:29 :D Thanks ski! 00:54:29 and using this is suggested by (prog arg_1  arg_n) being shorthand for (begin (apply exec-path `(prog arg_1  arg_n))) 01:39:38 jao [~jao@21.Red-79-153-49.dynamicIP.rima-tde.net] has joined #scheme 01:39:41 -!- jao [~jao@21.Red-79-153-49.dynamicIP.rima-tde.net] has quit [Changing host] 01:39:41 jao [~jao@pdpc/supporter/professional/jao] has joined #scheme 01:42:10 -!- zacts [~zacts@unaffiliated/zacts] has quit [Quit: leaving] 01:43:16 p_adams [~p_adams@24-107-140-111.dhcp.stls.mo.charter.com] has joined #scheme 01:47:46 -!- davexunit [~user@fsf/member/davexunit] has quit [Quit: Later] 01:47:59 -!- kwmiebach [~kwmiebach@xdsl-87-78-48-193.netcologne.de] has quit [Quit: Leaving] 01:59:42 -!- certaint1 [~david@www1.d-coded.de] has quit [Ping timeout: 272 seconds] 01:59:54 certainty [~david@www1.d-coded.de] has joined #scheme 02:07:50 -!- jao [~jao@pdpc/supporter/professional/jao] has quit [Ping timeout: 240 seconds] 02:11:00 brianmwaters [324b7382@gateway/web/freenode/ip.50.75.115.130] has joined #scheme 02:12:03 ASau` [~user@p5083D136.dip0.t-ipconnect.de] has joined #scheme 02:15:32 -!- ASau [~user@p54AFF5D3.dip0.t-ipconnect.de] has quit [Ping timeout: 272 seconds] 02:27:45 alexei [~amgarchin@p4FD6094F.dip0.t-ipconnect.de] has joined #scheme 02:27:46 -!- amgarchIn9 [~amgarchin@p4FD6094F.dip0.t-ipconnect.de] has quit [Quit: Konversation terminated!] 02:31:52 -!- jaimef [jaimef@dns.mauthesis.com] has quit [Excess Flood] 02:38:25 jaimef [jaimef@dns.mauthesis.com] has joined #scheme 02:53:18 -!- nisstyre [~yours@oftn/member/Nisstyre] has quit [Quit: Leaving] 02:55:02 -!- alexei [~amgarchin@p4FD6094F.dip0.t-ipconnect.de] has quit [Ping timeout: 240 seconds] 02:59:54 -!- ASau` is now known as ASau 03:00:16 weie [~weie@softbank221078042071.bbtec.net] has joined #scheme 03:11:50 -!- tenq|away [~tenq@199.19.116.207] has quit [Remote host closed the connection] 03:28:54 tenq|away [~tenq@199.19.116.207] has joined #scheme 03:28:57 -!- tenq|away is now known as tenq 03:34:09 -!- p_adams [~p_adams@24-107-140-111.dhcp.stls.mo.charter.com] has quit [Ping timeout: 272 seconds] 03:48:40 -!- brianmwaters [324b7382@gateway/web/freenode/ip.50.75.115.130] has quit [Quit: Page closed] 03:48:47 -!- kobain [~sambio@unaffiliated/kobain] has quit [] 04:08:53 -!- hiyosi [~skip_it@247.94.30.125.dy.iij4u.or.jp] has quit [Ping timeout: 245 seconds] 04:11:02 -!- yacks [~py@103.6.159.103] has quit [Ping timeout: 240 seconds] 04:19:42 hiyosi [~skip_it@247.94.30.125.dy.iij4u.or.jp] has joined #scheme 04:25:53 -!- tenq is now known as tenq|away 04:38:24 shachaf [~shachaf@unaffiliated/shachaf] has joined #scheme 04:50:02 preflex_ [~preflex@unaffiliated/mauke/bot/preflex] has joined #scheme 04:51:04 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 272 seconds] 04:51:06 -!- preflex_ is now known as preflex 05:01:27 -!- MrFahrenheit [~RageOfTho@77.221.25.95] has quit [Ping timeout: 245 seconds] 05:06:24 -!- oleo [~oleo@xdsl-78-35-167-178.netcologne.de] has quit [Ping timeout: 245 seconds] 05:06:53 oleo [~oleo@xdsl-78-35-154-167.netcologne.de] has joined #scheme