00:01:52 mjonsson [~mjonsson@38.109.95.133] has joined #scheme 00:08:43 -!- Sorella [~quildreen@oftn/member/Sorella] has quit [Ping timeout: 255 seconds] 00:11:21 -!- huseby [~huseby@ip65-47-28-158.z28-47-65.customer.algx.net] has quit [Quit: Leaving] 00:12:54 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 276 seconds] 00:14:56 -!- samth is now known as samth_away 00:15:29 jrslepak [~jrslepak@c-71-233-149-127.hsd1.ma.comcast.net] has joined #scheme 00:16:22 -!- fgudin [fgudin@odin.sdf-eu.org] has quit [Read error: Operation timed out] 00:19:37 fgudin [fgudin@178.63.35.194] has joined #scheme 00:20:30 -!- spiderweb [~lcc@unaffiliated/lcc] has quit [Quit: leaving] 00:20:58 Sorella [~quildreen@oftn/member/Sorella] has joined #scheme 00:34:44 Sorella_ [~quildreen@189.12.38.47] has joined #scheme 00:37:29 kvda [~kvda@ppp121-44-56-186.lns20.syd6.internode.on.net] has joined #scheme 00:37:38 -!- Sorella [~quildreen@oftn/member/Sorella] has quit [Ping timeout: 245 seconds] 00:40:12 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 276 seconds] 00:44:40 dnolen [~user@96.224.16.41] has joined #scheme 00:45:27 -!- dnolen [~user@96.224.16.41] has quit [Remote host closed the connection] 00:49:24 Sorella__ [~quildreen@201.58.214.193] has joined #scheme 00:49:31 dnolen [~user@pool-96-224-16-41.nycmny.east.verizon.net] has joined #scheme 00:51:23 -!- Sorella_ [~quildreen@189.12.38.47] has quit [Ping timeout: 245 seconds] 00:53:38 -!- jrslepak [~jrslepak@c-71-233-149-127.hsd1.ma.comcast.net] has quit [Quit: What happened to Systems A through E?] 01:04:35 jrslepak [~jrslepak@ip-64-134-43-156.public.wayport.net] has joined #scheme 01:12:54 -!- Blkt [~user@62.10.10.99] has quit [Quit: bed time...] 01:16:35 -!- yoklov [~yoklov@24-177-92-172.dhcp.nwtn.ct.charter.com] has quit [Quit: computer sleeping] 01:18:27 -!- masm [~masm@bl18-53-16.dsl.telepac.pt] has quit [Quit: Leaving.] 01:20:39 -!- dnolen [~user@pool-96-224-16-41.nycmny.east.verizon.net] has quit [Remote host closed the connection] 01:21:29 dnolen [~user@pool-96-224-16-41.nycmny.east.verizon.net] has joined #scheme 01:24:09 -!- amgarchIn9 [~amgarchin@p4FD61458.dip0.t-ipconnect.de] has quit [Quit: Konversation terminated!] 01:28:11 -!- BossKonaSegwaY [~Michael@cpe-75-187-42-68.columbus.res.rr.com] has left #scheme 01:28:37 -!- peterhil [~peterhil@91-157-48-10.elisa-laajakaista.fi] has quit [Ping timeout: 272 seconds] 01:29:18 -!- Sorella__ [~quildreen@201.58.214.193] has quit [Ping timeout: 245 seconds] 01:31:29 Sorella [~quildreen@201.58.214.193] has joined #scheme 01:31:29 -!- Sorella [~quildreen@201.58.214.193] has quit [Changing host] 01:31:29 Sorella [~quildreen@oftn/member/Sorella] has joined #scheme 01:48:28 xxhx [~user@host115.190-226-93.telecom.net.ar] has joined #scheme 01:48:59 yoklov [~yoklov@24-177-92-172.dhcp.nwtn.ct.charter.com] has joined #scheme 01:57:07 b4283 [~b4283@60-249-196-111.HINET-IP.hinet.net] has joined #scheme 02:00:11 -!- jrslepak [~jrslepak@ip-64-134-43-156.public.wayport.net] has quit [Quit: What happened to Systems A through E?] 02:06:58 jrslepak [~jrslepak@c-71-233-149-127.hsd1.ma.comcast.net] has joined #scheme 02:07:25 -!- mmc [~michal@178-85-56-58.dynamic.upc.nl] has quit [Ping timeout: 246 seconds] 02:16:12 -!- SlitazMint [~ivar@200-160-86-63.static-user.ajato.com.br] has quit [Ping timeout: 246 seconds] 02:20:11 -!- walter [~walter@c-24-218-217-69.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 02:21:53 -!- githogori [~githogori@c-69-181-109-127.hsd1.ca.comcast.net] has quit [Read error: Operation timed out] 02:24:08 jcowan [~John@mail.digitalkingdom.org] has joined #scheme 02:27:32 SlitazMint [~ivar@200-160-86-63.static-user.ajato.com.br] has joined #scheme 02:29:25 hoi 02:31:16 amoe_ [~amoe@host-92-26-165-242.as13285.net] has joined #scheme 02:33:47 (display ((lambda (x) (string-append "hello " x "\n")) "jcowan")) 02:34:21 -!- amoe [~amoe@host-2-99-121-149.as13285.net] has quit [Ping timeout: 252 seconds] 02:35:20 githogori [~githogori@c-69-181-109-127.hsd1.ca.comcast.net] has joined #scheme 02:36:12 Because it's not Scheme without lambdas. :-P 02:37:55 amgarchIn9 [~amgarchin@79.214.20.88] has joined #scheme 02:38:18 peterhil [~peterhil@91-157-48-10.elisa-laajakaista.fi] has joined #scheme 02:44:19 foof: ping 02:45:56 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 265 seconds] 02:48:28 neworder [~chatzilla@175.156.174.83] has joined #scheme 02:48:44 I'm reading the little schemer 02:49:28 Lemme think through the question first :P 02:51:06 I like that book. 02:51:20 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 02:51:50 -!- homie [~homie@94.123.220.37] has quit [Ping timeout: 268 seconds] 02:59:31 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 03:03:19 tali713 [~user@c-76-17-236-129.hsd1.mn.comcast.net] has joined #scheme 03:04:43 jcowan: pong 03:04:58 You are still adding patches to branch-7 03:05:06 er, draft-7 03:05:09 Is that on purpose? 03:05:44 I like that book too! 03:13:37 jcowan: No, I added one patch by mistake a week ago and Arthur already pointed out my mistake. 03:14:20 Ah, okay. I don't know why I didn't see it until now 03:14:42 Anyway, are we in a position to release an eighth draft for the vote, with just these editorial corrections? 03:16:59 -!- amgarchIn9 [~amgarchin@79.214.20.88] has quit [Quit: Konversation terminated!] 03:17:56 tali713` [~user@c-76-17-236-129.hsd1.mn.comcast.net] has joined #scheme 03:19:44 -!- tali713 [~user@c-76-17-236-129.hsd1.mn.comcast.net] has quit [Ping timeout: 256 seconds] 03:25:07 -!- tali713` is now known as tali713 03:26:28 cataska [~cataska@210.64.6.233] has joined #scheme 03:27:20 -!- Sorella [~quildreen@oftn/member/Sorella] has quit [Quit: (quit :reason 'sleep)] 03:34:58 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Quit: MichaelRaskin] 03:36:21 spiderweb [~lcc@unaffiliated/lcc] has joined #scheme 03:37:45 astertronistic [~astertron@ip70-181-247-103.sd.sd.cox.net] has joined #scheme 03:39:00 -!- SlitazMint [~ivar@200-160-86-63.static-user.ajato.com.br] has quit [Quit: Leaving] 03:42:04 SlitazMint [~ivar@200.160.86.63] has joined #scheme 03:44:02 lpaul7 [~paul@213.87.123.124] has joined #scheme 03:48:12 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme 03:48:28 -!- langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has quit [Client Quit] 03:53:30 -!- neworder [~chatzilla@175.156.174.83] has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]] 03:54:38 foof: re: reviewing, b94dfa0d7b80 is the big kahuna, and I may well have made mistakes in it 03:55:53 note that 4bc0387e2a14 partly overrides it 03:57:03 -!- lpaul7 [~paul@213.87.123.124] has quit [Quit:     (xchat 2.4.5  )] 04:02:34 -!- adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has quit [Ping timeout: 240 seconds] 04:03:30 adiii [~adityavit@76.117.52.187] has joined #scheme 04:03:33 cdidd [~cdidd@95-27-93-120.broadband.corbina.ru] has joined #scheme 04:06:37 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 04:09:28 -!- ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has quit [Remote host closed the connection] 04:12:38 -!- adiii [~adityavit@76.117.52.187] has quit [Ping timeout: 245 seconds] 04:16:03 adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has joined #scheme 04:21:29 realitygrill [~realitygr@75.114.249.90] has joined #scheme 04:31:51 ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has joined #scheme 04:31:51 -!- ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has quit [Remote host closed the connection] 04:36:28 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 04:40:39 -!- Onionnion|Eee [~ryan@adsl-68-254-160-100.dsl.milwwi.ameritech.net] has quit [Quit: Leaving] 04:41:38 -!- spiderweb [~lcc@unaffiliated/lcc] has quit [Quit: leaving] 04:43:20 spiderweb [~user@unaffiliated/lcc] has joined #scheme 04:47:37 Enoria [~Enoria@jte.kidradd.org] has joined #scheme 04:50:43 -!- dnolen [~user@pool-96-224-16-41.nycmny.east.verizon.net] has quit [Ping timeout: 252 seconds] 04:51:54 -!- SlitazMint [~ivar@200.160.86.63] has quit [Remote host closed the connection] 04:52:43 ympbyc [~ympbyc@220.98.6.134] has joined #scheme 04:53:36 SlitazMint [~ivar@200-160-86-63.static-user.ajato.com.br] has joined #scheme 05:00:06 -!- adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has quit [Ping timeout: 264 seconds] 05:02:30 adiii [~adityavit@76.117.52.187] has joined #scheme 05:04:42 -!- hash_table [~quassel@70-138-242-181.lightspeed.hstntx.sbcglobal.net] has quit [Ping timeout: 252 seconds] 05:12:29 -!- SlitazMint [~ivar@200-160-86-63.static-user.ajato.com.br] has quit [Remote host closed the connection] 05:13:48 -!- tupi [~david@186.205.32.26] has quit [Quit: Leaving] 05:15:15 SlitazMint [~ivar@200-160-86-63.static-user.ajato.com.br] has joined #scheme 05:27:57 -!- jcowan [~John@mail.digitalkingdom.org] has quit [Quit: Leaving] 05:32:45 -!- SlitazMint [~ivar@200-160-86-63.static-user.ajato.com.br] has quit [Quit: Leaving] 05:34:43 -!- mjonsson [~mjonsson@38.109.95.133] has quit [Ping timeout: 245 seconds] 05:53:24 -!- spiderweb [~user@unaffiliated/lcc] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 05:54:37 -!- pyro- [~pyro@unaffiliated/purplepanda] has quit [Read error: Connection reset by peer] 05:54:42 pyro-__ [~pyro@chopstick.dcollins.info] has joined #scheme 05:57:12 -!- Aethaeryn [~Michael@wesnoth/umc-dev/developer/aethaeryn] has left #scheme 06:12:04 -!- youlysses-ao [~user@75-132-17-145.dhcp.stls.mo.charter.com] has quit [Ping timeout: 246 seconds] 06:12:09 -!- youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has quit [Ping timeout: 252 seconds] 06:25:53 spiderweb [~lcc@unaffiliated/lcc] has joined #scheme 06:31:19 -!- jao [~jao@pdpc/supporter/professional/jao] has quit [Ping timeout: 246 seconds] 07:09:16 -!- peterhil [~peterhil@91-157-48-10.elisa-laajakaista.fi] has quit [Read error: Operation timed out] 07:09:19 #1=(cons 1 (cons 2 #1#)) <- what is this called? How to correct it? 07:11:29 it's a circular structure, using the "datum labels" syntax described in SRFI-38 (and adopted by R6RS and R7RS) 07:14:50 -!- kvda [~kvda@ppp121-44-56-186.lns20.syd6.internode.on.net] has quit [Quit: -___-] 07:14:52 as for how to "correct it", you'll have to elaborate on what precisely you need. 07:22:04 -!- ASau [~user@46.115.56.237] has quit [Ping timeout: 246 seconds] 07:23:11 mark_weaver: how to change it into something that my scheme interpreter understands 07:25:09 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 248 seconds] 07:29:53 covi: Is that actually some code that you found somewhere? IIUC, that code must produce an infinitely long list. 07:29:59 niels1 [~niels@p4FD6F6B8.dip.t-dialin.net] has joined #scheme 07:30:46 -!- noam [~noam@213.57.201.130] has quit [Ping timeout: 256 seconds] 07:30:57 since each 'cons' is required to allocate a fresh cons cell. 07:31:15 DT`` [~ea@79.53.87.168] has joined #scheme 07:32:27 equivalent code could perhaps be written as follows: (let loop () (cons 1 (cons 2 (loop)))) 07:34:20 if you relax the requirement that 'cons' must allocate a fresh cons cell, then you could just do (circular-list 1 2) using SRFI-1. 07:34:21 -!- DT` [~ea@host168-87-dynamic.53-79-r.retail.telecomitalia.it] has quit [Ping timeout: 246 seconds] 07:35:41 noam [~noam@213.57.201.130] has joined #scheme 07:35:45 or without SRFI-1: (let ((x (cons 1 (cons 2 'not-yet)))) (set-cdr! (cdr x) x) x) 07:37:09 mmc [~michal@178.85.56.58] has joined #scheme 07:45:58 -!- mmc [~michal@178.85.56.58] has quit [Ping timeout: 245 seconds] 07:46:40 gravicappa [~gravicapp@91.77.173.104] has joined #scheme 07:47:24 mark_weaver: so we can't 'actually' use '#1' and '#1#'? 07:47:52 mark_weaver: Won't it just make a cycle? 07:48:26 covi: the datum notation can be used for making more than just cycles. it can also be used to make shared substructure. 07:48:55 shachaf: it would produce an expression with a cycle, yes. but then when that expression is evaluated, it must produce an infinitely long list. 07:49:05 mark_weaver: Why? 07:49:46 Oh, you mentioned a circular list, OK. 07:52:01 shachaf: yeah, but technically the expression #1=(cons 1 (cons 2 #1#)) must evaluate to a list containing an infinite number of cons cells. 07:52:01 -!- githogori [~githogori@c-69-181-109-127.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 07:52:42 What about (define x (cons 1 (cons 2 '()))) (set-cdr (cdr x) x)? 07:52:44 and most compilers would probably go into an infinite loop during compilation. 07:53:12 I always thought of #1# as a common lisp thing. 07:53:20 But then again I don't really know either language. 07:53:21 shachaf: sure, but that's not an equivalent expression. 07:53:33 I'm not sure I see the point of it if you can't use it to make circular lists. 07:54:35 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 07:54:36 you can use it within literals, e.g. '#1=(1 2 #1#) 07:54:48 but if you make a circular expression, that's a different matter entirely. 07:55:28 the evaluator (or compiler) will see (cons 1 (cons 2 (cons 1 (cons 2 (cons 1 (cons 2 ...)))))) ad infinitum. 07:55:36 Oh, I see what you mean. 07:55:38 Fair enough. 07:55:45 Too much Haskell for me, perhaps. 08:02:15 yeah, if scheme had immutable cons cells, and 'cons' were not required to allocate fresh cells (which would also affect programs that compared cons cells using 'eq?' or 'eqv?'), then indeed a clever compiler could recognize the cyclic expression and return a finite circular list. 08:03:01 That sounds semantics-changing. 08:03:12 Haskell is a language that would allow that. 08:03:21 yeah, it certainly could not be done in the Lisp world. 08:05:37 racket has immutable cons 08:08:20 -!- spiderweb [~lcc@unaffiliated/lcc] has quit [Quit: leaving] 08:08:35 it should be noted that arbitrary circular structures can be created nicely in Sussman and Radul's propagator system using 'let-cells-rec', which is analogous to Scheme's 'letrec' but without the awkward restrictions. http://groups.csail.mit.edu/mac/users/gjs/propagators/revised-html.html 08:08:42 -!- astertronistic [~astertron@ip70-181-247-103.sd.sd.cox.net] has quit [Quit: Leaving] 08:09:30 e.g. (let-cells-rec ((lst (e:cons 1 (e:cons 2 lst)))) lst) 08:11:47 mark_weaver: I mean, even "if scheme had immutable cons cells, and 'cons' were not required to allocate fresh cells (which would also affect programs that compared cons cells using 'eq?' or 'eqv?')", it sounds semantics-changing. 08:12:30 shachaf: how so? 08:12:53 (other than the fact that the compiler would infinite loop otherwise :) 08:12:58 Optimizing a non-terminating program to a terminating one isn't something a compiler should be allowed to do. :-) 08:13:16 (Though it's much better than the other way around!) 08:13:44 fair enough :) 08:15:23 Then again, if an optimization changes semantics in a way that no one can observe, is it still unsound? 08:16:23 one can observe the compiler (or evaluation) going into an infinite loop :) 08:16:39 phax [~phax@unaffiliated/phax] has joined #scheme 08:18:08 though I suppose without a debugger, one can never be sure whether it has done so, or whether it's just being rather slow. 08:20:32 anyway, I doubt that it would be worthwhile to write a compiler that copes properly with circular expressions. a saner approach is to allow something like 'letrec' to do the right thing, like the propagator system does. 08:22:52 it would certainly be nice to be able to write (letrec ((x (cons 1 (cons 2 x)))) x) 08:23:01 mark_weaver: Not from the perspective of the program! 08:23:19 mark_weaver: You can, like, totally do that in Haskell, man. 08:24:46 shachaf: well, you can also do it in scheme using lazy streams: (letrec ((x (stream-cons 1 (stream-cons 2 x)))) x) works fine with SRFI-41 08:25:05 Sure. 08:25:16 Are lazy streams actually lazy? 08:25:32 what do you mean? 08:25:56 As opposed to nonstrict. 08:26:19 If you have a lazy stream that takes a lot of work to compute, will it only be computed once? 08:26:32 yes 08:28:35 mark_weaver: be careful with that "without blahblah restrictions". I'll never get any work done. ;P 08:29:29 :) 08:29:39 -!- cmatei [~cmatei@95.76.22.68] has quit [Ping timeout: 252 seconds] 08:30:39 cmatei [~cmatei@95.76.22.68] has joined #scheme 08:31:13 -!- pyro-__ [~pyro@chopstick.dcollins.info] has quit [Remote host closed the connection] 08:43:25 pyro- [~pyro@chopstick.dcollins.info] has joined #scheme 08:49:36 -!- fantazo [~fantazo@91-119-196-139.dynamic.xdsl-line.inode.at] has quit [Remote host closed the connection] 08:49:57 bjz [~brendanza@101.162.214.115] has joined #scheme 08:51:18 wingo [~wingo@77-56-172-80.dclient.hispeed.ch] has joined #scheme 08:53:58 peterhil [~peterhil@91-157-48-10.elisa-laajakaista.fi] has joined #scheme 09:10:25 -!- phax [~phax@unaffiliated/phax] has quit [Quit: Leaving] 09:11:05 mmc [~michal@sams-office-nat.tomtomgroup.com] has joined #scheme 09:23:25 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 268 seconds] 09:28:30 -!- LeoNerd [~leo@fairy.dictatorshipcake.co.uk] has quit [Remote host closed the connection] 09:40:35 -!- bjz [~brendanza@101.162.214.115] has quit [Quit: Leaving...] 09:44:31 LeoNerd [~leo@fairy.dictatorshipcake.co.uk] has joined #scheme 09:49:17 -!- mark_weaver [~user@209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 09:51:17 relation [~relation@ip58-112-cust.sprintel.cz] has joined #scheme 09:53:11 hi.. suppose the definition of _list as (define _list (lambda args args)).. will it behave exactly as pre-defined list in all ways or are there any exceptions? 09:54:47 fantazo [~fantazo@91-119-196-139.dynamic.xdsl-line.inode.at] has joined #scheme 09:56:01 relation: I see no reason why it should be different in any way 09:56:06 I can't imagine a reason it should behave different. 09:56:59 Do it and see if any code you write breaks. :-D 09:57:01 bjz [~brendanza@101.162.214.115] has joined #scheme 09:57:18 That could be implementation-dependent though. :P 09:57:38 Well, any answer to the question would be, right? 09:57:52 I agree with what the two of you said though. 09:57:56 If the standard doesn't make it clear .. 09:58:31 thanks to all for the ideas 09:59:19 i will study the standard and see, thanks a lot 09:59:22 (If I made an implementation, I imagine I'd implement lambda in terms of a primitive lambda and list, I think.) 10:01:36 Actually, does http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-7.html#%_sec_4.1.4 say `when the procedure is called, the sequence of actual arguments is converted into a newly allocated list'. 10:01:36 (I think I imagine that I'd guess that should probably be the way to go, maybe.) 10:01:37 http://tinyurl.com/23pawpe 10:02:14 That seems to specify that it must be a normal list in every possible meaning of the word. 10:02:24 But, I could be wrong. 10:07:07 -!- SeySayux [SeySayux@libsylph/developer/seysayux] has quit [Ping timeout: 245 seconds] 10:08:46 -!- yoklov [~yoklov@24-177-92-172.dhcp.nwtn.ct.charter.com] has quit [Quit: computer sleeping] 10:08:56 -!- taylanub [tub@p4FD91CA5.dip.t-dialin.net] has quit [Disconnected by services] 10:09:07 taylanub [tub@79.217.46.108] has joined #scheme 10:09:28 SeySayux [SeySayux@libsylph/developer/seysayux] has joined #scheme 10:15:07 -!- b4283 [~b4283@60-249-196-111.HINET-IP.hinet.net] has quit [Remote host closed the connection] 10:41:29 thorwil [~thorwil@91.61.208.231] has joined #scheme 10:42:48 hi! in the seasoned schemer, i stumbled across use of let with empty definitions list and 2 bodies 10:43:25 what is the point of let with empty definition list in general? 10:44:11 given 2 bodies, id there a case where the form does not evaluate to the 2nd body (if the first doesn't provoke an error)? 10:45:25 there is only one body in a LET (i.e. everything after the parameters list is "the body") 10:46:38 It could be using it like a `begin' though, right? 10:47:29 fds: there's a footnote that a begin also works. or a progn in CL 10:47:44 That's the point of it then. ;-) 10:49:43 peterhil` [~peterhil@gatekeeper.brainalliance.com] has joined #scheme 10:52:02 the text explains that the let with 2 expressions in the value part means that he first expression must be evaluated. if it has a value, it is ignored and the 2nd expression is evaluated 10:52:46 what they don't say is: what if the first expression has no value (and how can that be without causing an error)? 10:53:25 Then the no value is thrown away. ;-) 10:54:22 A And an example is (set! x 5) or something 10:55:57 using racket, i can't find an expression of no value that does not produce an error 10:56:34 rudybot: (define x 3) 10:56:35 fds: Done. 10:56:41 rudybot: (set! x 5) 10:56:41 fds: Done. 10:56:46 rudybot: x 10:56:47 fds: ; Value: 5 10:56:58 rudybot: (+ 100 3) 10:56:59 fds: ; Value: 103 10:57:12 Neither of the first two expressions returned a value, did they? 10:57:21 rudybot: (banner) 10:57:21 fds: ; Value: "Welcome to Racket v5.2.900.1.\n" 10:57:50 ah, define in the let works, but set! produces an error 10:58:07 rudybot: (let () (set! x 100) (+ 2 3)) 10:58:08 fds: ; Value: 5 10:58:11 rudybot: x 10:58:11 fds: ; Value: 100 10:58:23 You've got to define something before you set! it. 10:59:05 set! is introduced in the next chapter ;) 10:59:56 Well, it's your fault for asking questions! 11:00:01 :-) 11:00:59 using a define as first expression causes the 2nd expression to be returned – just like if the 1st expression has a value 11:01:09 Right. 11:01:12 since there are no sideeffects, i still don't get it 11:01:32 Throwing away no value is just as easy as throwing away a value. 11:01:53 There are side effects! 11:02:24 rudybot: (let () (define y 1) (set! y 2) y) 11:02:25 fds: ; Value: 2 11:03:01 here yes, but not in the example in the book 11:04:09 Well, unfortunately I can't tell you what the author was trying to communicate and I haven't even read the book myself. :-( 11:06:23 fds: well, ty for the help with no value :) 11:06:38 the example is https://gist.github.com/4117310 11:06:41 though bbl 11:09:34 Yeah, lunch! 11:12:15 -!- ympbyc [~ympbyc@220.98.6.134] has quit [Remote host closed the connection] 11:18:33 masm [~masm@bl18-53-16.dsl.telepac.pt] has joined #scheme 11:20:07 -!- fantazo [~fantazo@91-119-196-139.dynamic.xdsl-line.inode.at] has quit [Remote host closed the connection] 11:25:36 phao [~phao@pontenova.dpi.ufv.br] has joined #scheme 11:35:58 -!- gravicappa [~gravicapp@91.77.173.104] has quit [Ping timeout: 245 seconds] 11:42:42 -!- relation [~relation@ip58-112-cust.sprintel.cz] has quit [Quit: Lost terminal] 11:54:17 mjonsson [~mjonsson@38.109.95.133] has joined #scheme 12:14:49 during my break it suddenly became clear to me that the point is of course to start computation that might lead to breaking out via the letcc 12:18:58 add^_ [~add^_@m90-141-36-240.cust.tele2.se] has joined #scheme 12:23:23 b4283 [~b4283@1-172-80-90.dynamic.hinet.net] has joined #scheme 12:28:49 -!- Nisstyre [~yours@oftn/member/Nisstyre] has quit [Ping timeout: 265 seconds] 12:31:34 -!- realitygrill [~realitygr@75.114.249.90] has quit [Quit: Computer has gone to sleep] 12:37:05 realitygrill [~realitygr@75.114.249.90] has joined #scheme 12:42:53 Nisstyre [~yours@oftn/member/Nisstyre] has joined #scheme 12:45:20 gravicappa [~gravicapp@91.77.173.53] has joined #scheme 12:49:47 -!- thorwil [~thorwil@91.61.208.231] has left #scheme 12:49:50 masm1 [~masm@bl18-53-16.dsl.telepac.pt] has joined #scheme 12:51:00 -!- masm [~masm@bl18-53-16.dsl.telepac.pt] has quit [Ping timeout: 248 seconds] 12:53:23 kpal [~kpal@janus-nat-128-240-225-120.ncl.ac.uk] has joined #scheme 12:54:23 -!- add^_ [~add^_@m90-141-36-240.cust.tele2.se] has quit [Quit: add^_] 13:04:27 youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has joined #scheme 13:07:40 -!- kpal [~kpal@janus-nat-128-240-225-120.ncl.ac.uk] has quit [Quit: Lost terminal] 13:20:44 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Quit: MichaelRaskin] 13:23:48 `fogus [~fogus@burke-matrex.d-a-s.com] has joined #scheme 13:29:24 -!- `fogus is now known as fojure 13:45:23 jao [~jao@83.32.71.232] has joined #scheme 13:45:26 -!- jao [~jao@83.32.71.232] has quit [Changing host] 13:45:26 jao [~jao@pdpc/supporter/professional/jao] has joined #scheme 14:04:39 -!- youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has quit [Remote host closed the connection] 14:07:29 youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has joined #scheme 14:09:42 -!- youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has quit [Remote host closed the connection] 14:12:03 -!- mjonsson [~mjonsson@38.109.95.133] has quit [Ping timeout: 276 seconds] 14:14:23 add^_ [~add^_@m90-141-36-240.cust.tele2.se] has joined #scheme 14:18:18 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme 14:21:01 hash_table [~quassel@70-138-242-181.lightspeed.hstntx.sbcglobal.net] has joined #scheme 14:31:18 -!- hash_table [~quassel@70-138-242-181.lightspeed.hstntx.sbcglobal.net] has quit [Ping timeout: 264 seconds] 14:33:29 -!- phao [~phao@pontenova.dpi.ufv.br] has quit [Quit: Not Here] 14:41:07 answer_42 [~answer_42@ip82-139-81-70.lijbrandt.net] has joined #scheme 14:51:54 -!- mmc [~michal@sams-office-nat.tomtomgroup.com] has quit [Ping timeout: 240 seconds] 14:55:00 huseby [~huseby@home.husebyhome.com] has joined #scheme 14:56:16 -!- huseby [~huseby@home.husebyhome.com] has quit [Client Quit] 14:56:43 carleastlund [~cce@gotham.ccs.neu.edu] has joined #scheme 15:03:21 -!- niels1 [~niels@p4FD6F6B8.dip.t-dialin.net] has quit [Ping timeout: 252 seconds] 15:08:58 tupi [~david@186.205.32.26] has joined #scheme 15:14:07 huseby [~huseby@home.husebyhome.com] has joined #scheme 15:20:44 -!- huseby [~huseby@home.husebyhome.com] has quit [Quit: Leaving] 15:21:05 huseby [~huseby@home.husebyhome.com] has joined #scheme 15:23:55 -!- wingo [~wingo@77-56-172-80.dclient.hispeed.ch] has quit [Remote host closed the connection] 15:28:12 fantazo [~fantazo@91-119-196-139.dynamic.xdsl-line.inode.at] has joined #scheme 15:37:44 -!- langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has quit [Ping timeout: 268 seconds] 15:38:34 hash_table [~quassel@128.249.96.123] has joined #scheme 15:40:01 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme 15:40:39 mmc [~michal@178.85.56.58] has joined #scheme 15:48:27 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Remote host closed the connection] 15:49:54 phao [~phao@pontenova.dpi.ufv.br] has joined #scheme 15:51:08 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 15:52:32 walter [~walter@c-24-218-217-69.hsd1.ma.comcast.net] has joined #scheme 15:56:38 kilon [~kilon@unaffiliated/thekilon] has joined #scheme 15:59:55 -!- phao [~phao@pontenova.dpi.ufv.br] has quit [Ping timeout: 252 seconds] 16:05:11 mark_weaver [~user@209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 16:16:53 prototrout [836b004a@gateway/web/freenode/ip.131.107.0.74] has joined #scheme 16:21:10 -!- add^_ [~add^_@m90-141-36-240.cust.tele2.se] has quit [Quit: add^_] 16:24:36 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Quit: Konversation terminated!] 16:30:40 -!- zbigniew [~zb@3e8.org] has quit [Remote host closed the connection] 16:31:00 zbigniew [~zb@3e8.org] has joined #scheme 16:37:33 kunsel [~kunsel@pc228165.wlan.uni-kiel.de] has joined #scheme 16:39:35 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 16:40:58 -!- huseby [~huseby@home.husebyhome.com] has quit [Quit: Leaving] 16:45:09 rins [~aaron@75-149-129-85-Connecticut.hfc.comcastbusiness.net] has joined #scheme 16:45:39 -!- copec [~copec@64.244.102.140] has quit [Quit: ZNC - http://znc.in] 16:46:57 -!- b4283 [~b4283@1-172-80-90.dynamic.hinet.net] has quit [Remote host closed the connection] 16:47:56 -!- kunsel [~kunsel@pc228165.wlan.uni-kiel.de] has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/] 16:48:07 kunsel [~kunsel@pc228165.wlan.uni-kiel.de] has joined #scheme 16:48:17 copec [~copec@64.244.102.140] has joined #scheme 16:48:31 b4283 [~b4283@1-172-80-90.dynamic.hinet.net] has joined #scheme 16:49:54 -!- jrslepak [~jrslepak@c-71-233-149-127.hsd1.ma.comcast.net] has quit [Quit: What happened to Systems A through E?] 16:50:17 camu5 [~camu5@c83-254-140-220.bredband.comhem.se] has joined #scheme 16:50:33 xxhx` [~user@190.138.35.151] has joined #scheme 16:52:13 -!- xxhx [~user@host115.190-226-93.telecom.net.ar] has quit [Ping timeout: 246 seconds] 16:52:49 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 16:54:06 xxhx`` [~user@190.225.87.159] has joined #scheme 16:55:58 -!- xxhx` [~user@190.138.35.151] has quit [Ping timeout: 245 seconds] 16:56:58 add^_ [~add^_@m90-141-36-240.cust.tele2.se] has joined #scheme 16:58:15 -!- ffs [~garland@unaffiliated/ffs] has quit [Remote host closed the connection] 16:58:32 ffs [~garland@unaffiliated/ffs] has joined #scheme 17:02:34 -!- xxhx`` is now known as xxhx 17:09:18 huseby [~huseby@gateway/tor-sasl/huseby] has joined #scheme 17:11:35 ijp` [~user@host86-162-109-145.range86-162.btcentralplus.com] has joined #scheme 17:13:10 gffa [~unknown@unaffiliated/gffa] has joined #scheme 17:14:02 -!- ijp [~user@host86-174-103-169.range86-174.btcentralplus.com] has quit [Ping timeout: 244 seconds] 17:15:52 -!- huseby [~huseby@gateway/tor-sasl/huseby] has quit [Quit: Leaving] 17:17:14 -!- ijp` is now known as ijp 17:18:05 phao [~phao@200.235.131.2] has joined #scheme 17:19:37 -!- eli [~eli@racket/eli] has quit [Ping timeout: 245 seconds] 17:20:33 -!- add^_ [~add^_@m90-141-36-240.cust.tele2.se] has quit [Quit: add^_] 17:20:42 huseby [~huseby@gateway/tor-sasl/huseby] has joined #scheme 17:26:53 kilon_alios [~kilon@212.54.194.25] has joined #scheme 17:27:12 youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has joined #scheme 17:28:21 -!- kilon [~kilon@unaffiliated/thekilon] has quit [Ping timeout: 276 seconds] 17:30:16 -!- youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has quit [Remote host closed the connection] 17:31:01 jrslepak [~jrslepak@nomad.ccs.neu.edu] has joined #scheme 17:35:08 -!- huseby [~huseby@gateway/tor-sasl/huseby] has quit [Quit: Leaving] 17:35:58 -!- adiii [~adityavit@76.117.52.187] has quit [Ping timeout: 245 seconds] 17:38:05 -!- b4283 [~b4283@1-172-80-90.dynamic.hinet.net] has quit [Remote host closed the connection] 17:43:47 -!- kilon_alios is now known as kilon 17:43:49 -!- kilon [~kilon@212.54.194.25] has quit [Changing host] 17:43:49 kilon [~kilon@unaffiliated/thekilon] has joined #scheme 17:48:44 -!- walter [~walter@c-24-218-217-69.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 17:57:29 -!- hiroaki_ [~hiroaki@77-20-78-82-dynip.superkabel.de] has quit [Ping timeout: 265 seconds] 17:59:51 huseby [~huseby@gateway/tor-sasl/huseby] has joined #scheme 18:04:30 githogori [~githogori@c-69-181-109-127.hsd1.ca.comcast.net] has joined #scheme 18:05:56 SlitazMint [~ivar@200.160.86.63] has joined #scheme 18:10:30 hiroaki_ [~hiroaki@p5B04A6FE.dip.t-dialin.net] has joined #scheme 18:15:37 -!- phao [~phao@200.235.131.2] has quit [Quit: Not Here] 18:18:57 -!- dostoyev1ky [sck@butterkeks.oerks.de] has quit [Quit: leaving] 18:19:15 dostoyevsky [sck@butterkeks.oerks.de] has joined #scheme 18:20:04 ASau [~user@46.115.68.120] has joined #scheme 18:20:09 ASau` [~user@46.115.68.120] has joined #scheme 18:20:13 -!- ASau` [~user@46.115.68.120] has quit [Remote host closed the connection] 18:23:36 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 276 seconds] 18:38:50 amgarchIn9 [~amgarchin@p4FD60323.dip0.t-ipconnect.de] has joined #scheme 18:49:33 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 18:52:54 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 260 seconds] 18:52:58 -!- SlitazMint [~ivar@200.160.86.63] has quit [Quit: Leaving] 18:53:12 -!- ASau [~user@46.115.68.120] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 18:53:54 ASau [~user@46.115.68.120] has joined #scheme 18:55:42 neworder [~chatzilla@175.156.174.83] has joined #scheme 19:00:14 untrusted [~user@stgt-5f71884d.pool.mediaWays.net] has joined #scheme 19:00:44 -!- hiroaki_ [~hiroaki@p5B04A6FE.dip.t-dialin.net] has quit [Remote host closed the connection] 19:05:38 hiroaki [~hiroaki@p5B04A6FE.dip.t-dialin.net] has joined #scheme 19:11:03 -!- huseby [~huseby@gateway/tor-sasl/huseby] has quit [Ping timeout: 276 seconds] 19:13:45 -!- untrusted [~user@stgt-5f71884d.pool.mediaWays.net] has quit [Remote host closed the connection] 19:14:44 huseby [~huseby@gateway/tor-sasl/huseby] has joined #scheme 19:15:42 -!- MrFahrenheit [~RageOfTho@77.221.31.207] has quit [Ping timeout: 264 seconds] 19:16:28 -!- kunsel [~kunsel@pc228165.wlan.uni-kiel.de] has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/] 19:18:17 -!- amgarchIn9 [~amgarchin@p4FD60323.dip0.t-ipconnect.de] has quit [Quit: Konversation terminated!] 19:19:09 amgarchIn9 [~amgarchin@p4FD60323.dip0.t-ipconnect.de] has joined #scheme 19:20:13 bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has joined #scheme 19:29:55 -!- hash_table [~quassel@128.249.96.123] has quit [Ping timeout: 244 seconds] 19:41:56 I was playing around with R7RS libraries and Chibi Scheme (most recent from Mercurial) and I cannot seem to get include-library-declarations to work. The error I get is that 'include-library-declarations' is an undefined variable, and indeed I can find no reference to it in Chibi's source. 19:42:17 I have my example code at http://ideone.com/ROSMDS if anybody has any pointers. 19:43:57 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 19:45:51 -!- answer_42 [~answer_42@ip82-139-81-70.lijbrandt.net] has quit [Quit: WeeChat 0.3.9.1] 19:47:18 this is a shot in the dark, but you might try (import (scheme base)) 19:51:28 mark_weaver: Thanks for the idea, but it still fails. 20:02:17 adiii [~adityavit@NYUFGA-GUESTS-01.NATPOOL.NYU.EDU] has joined #scheme 20:05:25 -!- cdidd [~cdidd@95-27-93-120.broadband.corbina.ru] has quit [Read error: Connection reset by peer] 20:05:34 Hi guys 20:05:54 I'm having problem with multirember&co function in the little schemer book 20:06:15 Tried googling it, but I need slightly more help 20:12:18 -!- adiii [~adityavit@NYUFGA-GUESTS-01.NATPOOL.NYU.EDU] has quit [Ping timeout: 252 seconds] 20:16:34 spiderweb [~lcc@unaffiliated/lcc] has joined #scheme 20:17:07 neworder: just ask your question, then it will be easier for people to know if they can help you 20:19:40 Alright, was thinking through the question one more time 20:27:39 adiii [~adityavit@NYUFGA-WLESSAUTHCLIENTS-06.NATPOOL.NYU.EDU] has joined #scheme 20:27:50 -!- camu5 [~camu5@c83-254-140-220.bredband.comhem.se] has quit [Quit: Leaving] 20:29:30 -!- gravicappa [~gravicapp@91.77.173.53] has quit [Remote host closed the connection] 20:30:21 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 276 seconds] 20:33:40 -!- pothos [~pothos@114-36-241-203.dynamic.hinet.net] has quit [Read error: Connection reset by peer] 20:36:24 pothos [~pothos@114-25-206-217.dynamic.hinet.net] has joined #scheme 20:37:03 -!- adiii [~adityavit@NYUFGA-WLESSAUTHCLIENTS-06.NATPOOL.NYU.EDU] has quit [Read error: Operation timed out] 20:47:26 MrFahrenheit [~RageOfTho@77.221.31.207] has joined #scheme 21:03:33 adiii [~adityavit@NYUFGA-WLESSAUTHCLIENTS-05.NATPOOL.NYU.EDU] has joined #scheme 21:06:13 -!- spiderweb [~lcc@unaffiliated/lcc] has quit [Quit: leaving] 21:10:28 spiderweb [~user@unaffiliated/lcc] has joined #scheme 21:20:59 -!- bjz [~brendanza@101.162.214.115] has quit [Quit: Leaving...] 21:30:29 -!- kilon [~kilon@unaffiliated/thekilon] has quit [Remote host closed the connection] 21:31:43 -!- fantazo [~fantazo@91-119-196-139.dynamic.xdsl-line.inode.at] has quit [Remote host closed the connection] 21:32:10 kilon [~kilon@unaffiliated/thekilon] has joined #scheme 21:33:09 -!- neworder [~chatzilla@175.156.174.83] has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]] 21:34:49 -!- madsy is now known as Madsy 21:36:49 -!- peterhil` [~peterhil@gatekeeper.brainalliance.com] has quit [Ping timeout: 256 seconds] 21:41:48 -!- aezx [~aez@68-190-58-253.dhcp.mtgm.al.charter.com] has quit [Quit: Leaving] 21:51:41 masm [~masm@bl18-53-16.dsl.telepac.pt] has joined #scheme 21:51:54 -!- masm1 [~masm@bl18-53-16.dsl.telepac.pt] has quit [Ping timeout: 240 seconds] 21:56:43 -!- adiii [~adityavit@NYUFGA-WLESSAUTHCLIENTS-05.NATPOOL.NYU.EDU] has quit [Ping timeout: 265 seconds] 22:00:53 -!- jrslepak [~jrslepak@nomad.ccs.neu.edu] has quit [Quit: What happened to Systems A through E?] 22:01:22 -!- mark_weaver [~user@209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:01:49 -!- bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has quit [Ping timeout: 244 seconds] 22:05:10 -!- masm [~masm@bl18-53-16.dsl.telepac.pt] has quit [Ping timeout: 260 seconds] 22:05:20 masm [~masm@bl18-53-16.dsl.telepac.pt] has joined #scheme 22:05:57 civodul [~user@reverse-83.fdn.fr] has joined #scheme 22:08:54 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 260 seconds] 22:09:25 add^_ [~add^_@m212-152-24-202.cust.tele2.se] has joined #scheme 22:14:15 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [*.net *.split] 22:14:15 -!- tupi [~david@186.205.32.26] has quit [*.net *.split] 22:14:15 -!- tali713 [~user@c-76-17-236-129.hsd1.mn.comcast.net] has quit [*.net *.split] 22:14:15 -!- acieroid [~acieroid@wtf.awesom.eu] has quit [*.net *.split] 22:14:15 -!- cky [~cky@fsf/member/cky] has quit [*.net *.split] 22:14:15 -!- cross [cross@spitfire.i.gajendra.net] has quit [*.net *.split] 22:14:15 -!- offby1 [~user@pdpc/supporter/monthlybyte/offby1] has quit [*.net *.split] 22:14:15 -!- snarkyboojum [~snarkyboo@67-23-4-190.static.slicehost.net] has quit [*.net *.split] 22:14:15 -!- pyro-_ [~pyro@zhaozhou.dcollins.info] has quit [*.net *.split] 22:14:23 cross [cross@spitfire.i.gajendra.net] has joined #scheme 22:14:25 tali713 [~user@c-76-17-236-129.hsd1.mn.comcast.net] has joined #scheme 22:14:31 offby1 [~user@ec2-50-18-28-110.us-west-1.compute.amazonaws.com] has joined #scheme 22:14:32 pyro-_ [~pyro@zhaozhou.dcollins.info] has joined #scheme 22:14:42 tupi [~david@186.205.32.26] has joined #scheme 22:14:59 cky [~cky@fsf/member/cky] has joined #scheme 22:15:06 -!- offby1 [~user@ec2-50-18-28-110.us-west-1.compute.amazonaws.com] has quit [Changing host] 22:15:06 offby1 [~user@pdpc/supporter/monthlybyte/offby1] has joined #scheme 22:15:12 snarkyboojum [~snarkyboo@67-23-4-190.static.slicehost.net] has joined #scheme 22:15:50 -!- spiderweb [~user@unaffiliated/lcc] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:18:02 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 22:19:14 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 22:19:20 adiii [~adityavit@NYUFGA-WLESSAUTHCLIENTS-04.NATPOOL.NYU.EDU] has joined #scheme 22:20:10 Onionnion|Eee [~ryan@adsl-68-254-160-100.dsl.milwwi.ameritech.net] has joined #scheme 22:20:28 acieroid [~acieroid@wtf.awesom.eu] has joined #scheme 22:24:33 -!- Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has quit [*.net *.split] 22:31:50 Nshag [user@88.123.84.8] has joined #scheme 22:35:54 Admus [~Admus@49.Red-83-61-33.dynamicIP.rima-tde.net] has joined #scheme 22:37:58 neworder [~chatzilla@175.156.174.83] has joined #scheme 22:41:14 jrslepak [~jrslepak@nomad.ccs.neu.edu] has joined #scheme 22:41:23 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 22:42:05 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 22:42:05 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Changing host] 22:42:05 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 22:44:37 youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has joined #scheme 22:45:05 Hi 22:45:13 I'm trying to understand this function in scheme 22:45:15 http://paste.lisp.org/display/133835 22:45:43 It's related to the multirember&co function in the little schemer 22:45:48 -!- jrslepak [~jrslepak@nomad.ccs.neu.edu] has quit [Client Quit] 22:46:02 where you pass functions as argument and use it as a collector 22:46:52 After getting till the last part, I'm not sure how to expand the function further 22:46:59 How are the arguments applied? 22:49:00 you apply it to 0 22:49:13 because (null? lat) is true 22:49:55 hmm ok 22:49:58 so col 0 22:50:35 -!- adiii [~adityavit@NYUFGA-WLESSAUTHCLIENTS-04.NATPOOL.NYU.EDU] has quit [Ping timeout: 255 seconds] 22:52:02 -!- Onionnion|Eee [~ryan@adsl-68-254-160-100.dsl.milwwi.ameritech.net] has quit [Remote host closed the connection] 22:52:03 is the sum in the (lambda (sum)) and the next (lambda (sum)) different? 22:52:20 yea each lambda binds a new sum variable 22:53:08 hmm ok 22:53:11 So col 0 22:53:17 when you invoke the lambda you map sum to the argument, so only replace sum in the body of the lambda with that sum 22:53:20 will pass the value 0 to sum right 22:53:22 then 22:53:34 yea the outermost lambda sum form 22:54:16 That returns the inner function 22:54:21 ( (lambda (sum) 22:54:23 ((lambda (x) x)) (+ 3 sum)) (+ (5 sum) )) 22:54:45 How do I continue now? 22:54:47 =) 22:54:59 its an application because you have (something arg) 22:55:36 so you apply the function to the arg again 22:55:41 hmm 22:55:49 So what would be the argument in this case 22:56:07 by the way, I got mixed up by the 2 sum 22:56:22 Sum of the outer function is 0 right 22:56:56 so should it be like this, ((lambda (x) x)) (+ 3 0)) (+ (5 0) )) 22:57:01 homie [~homie@94.123.220.37] has joined #scheme 22:57:24 I suspect you mean (+ 5 0) not (+ (5 0)) 22:57:47 its (+ 3 sum0 22:57:48 ) 22:57:58 because you haven't evaluated the inner (lambda sum ...) yet 22:58:02 but no, the problem is you substituted the outser sums value into the inner lambda 22:58:16 Ah I see! 22:58:20 Lemme see again 22:58:53 -!- mmc [~michal@178.85.56.58] has quit [Ping timeout: 245 seconds] 22:59:49 After substituting the outer lambda sum, it's like this right? 22:59:50 ((lambda (x) x)) (+ 3 sum)) (+ 5 0 ))) 23:00:03 neworder: when you have an inner lambda with an argument with the same name as an outer lambda, it may be helpful to rename it 23:00:16 hmm 23:00:19 alright 23:01:24 Much clearer now thanks 23:01:50 so if we rewrite it as ((lambda (sum1) ((lambda (x) x)) (+ 3 sum1)) (+ 5 sum)) I think you will see the issue 23:02:29 er that should be, ((lambda (sum1) ((lambda (x) x) (+ 3 sum1))) (+ 5 sum)) 23:03:31 add^_^ [~add^_@m37-3-118-29.cust.tele2.se] has joined #scheme 23:05:59 Got it thanks 23:06:21 -!- add^_ [~add^_@m212-152-24-202.cust.tele2.se] has quit [Ping timeout: 276 seconds] 23:06:21 -!- add^_^ is now known as add^_ 23:07:02 Blkt [~user@62.10.10.99] has joined #scheme 23:08:58 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 23:10:23 jrslepak [~jrslepak@12.147.121.74] has joined #scheme 23:10:30 If I try to write a function like this, I would find it very difficult 23:11:03 It's like counter intuitive 23:11:12 What should I do 23:11:15 lol 23:14:51 try to write factorial accumulator style 23:17:28 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 252 seconds] 23:18:28 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Remote host closed the connection] 23:19:08 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 23:20:54 -!- youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has quit [Remote host closed the connection] 23:20:58 Sorella [~quildreen@oftn/member/Sorella] has joined #scheme 23:21:23 youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has joined #scheme 23:23:54 -!- kilon [~kilon@unaffiliated/thekilon] has quit [Remote host closed the connection] 23:25:42 mjonsson [~mjonsson@38.109.95.133] has joined #scheme 23:27:01 alright thanks 23:27:05 -!- neworder [~chatzilla@175.156.174.83] has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]] 23:28:33 -!- add^_ [~add^_@m37-3-118-29.cust.tele2.se] has quit [Quit: add^_] 23:28:51 -!- youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has quit [Read error: Connection reset by peer] 23:35:01 -!- ijp is now known as legumbre2 23:35:09 -!- legumbre2 is now known as ijp 23:38:12 -!- rins [~aaron@75-149-129-85-Connecticut.hfc.comcastbusiness.net] has quit [Ping timeout: 276 seconds] 23:40:04 -!- notdan [~h@unaffiliated/notdan] has quit [Ping timeout: 248 seconds] 23:42:06 notdan [~h@zag.zig.io] has joined #scheme 23:42:06 -!- notdan [~h@zag.zig.io] has quit [Changing host] 23:42:06 notdan [~h@unaffiliated/notdan] has joined #scheme 23:43:47 fantazo [~fantazo@91-119-196-139.dynamic.xdsl-line.inode.at] has joined #scheme 23:47:11 -!- realitygrill [~realitygr@75.114.249.90] has quit [Ping timeout: 260 seconds] 23:48:52 realitygrill [~realitygr@75.114.249.90] has joined #scheme 23:54:30 -!- homie [~homie@94.123.220.37] has quit [Ping timeout: 252 seconds] 23:57:34 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Read error: Operation timed out]