2014-10-21T00:00:21Z ijp: https://gist.github.com/1388e8b2285e0ac546b7 2014-10-21T00:05:15Z germ13 quit (Ping timeout: 244 seconds) 2014-10-21T00:05:40Z jffmcc: Isnt the drop for numbers? Would it work for lists? Because you cant do ((1 2 3) - 1) 2014-10-21T00:06:08Z vanila: jffmcc, you can't do infix operators in lisp 2014-10-21T00:06:12Z germ13 joined #scheme 2014-10-21T00:06:36Z ijp: jffmcc: (drop n l) removes the first n elements from l 2014-10-21T00:06:46Z jffmcc: Didnt understand that XD. Im not a pro comp programmer... I just started learning it in school 2014-10-21T00:07:05Z evhan: (drop l n)* 2014-10-21T00:07:08Z ijp: note that the recursive call decrements the number *AND* cdrs the list 2014-10-21T00:07:12Z vanila: in lisp you write (- (1 2 3) 1) 2014-10-21T00:07:15Z vanila: not ((1 2 3) - 1) 2014-10-21T00:07:34Z jffmcc: Didnt understand vanila. School doesnt go very indepth. They arent trying to get you to be a pro 2014-10-21T00:07:37Z evhan: Ah, not srfi-1's. nm. :) 2014-10-21T00:07:38Z ijp: evhan: that is the correct srfi 1 order, but not in the definition in my gist 2014-10-21T00:07:50Z jffmcc: Just basics XD I dont think I will ever use scheme. I want to learn C+ 2014-10-21T00:08:10Z ijp: the only reason you want to learn c++ is because you've never used c++ 2014-10-21T00:08:24Z ijp: you don't get those hours back 2014-10-21T00:08:32Z vanila: jffmcc, you should try to understand this 2014-10-21T00:08:38Z jffmcc: Yeah sorry vanila. Habit XD 2014-10-21T00:08:51Z vanila: try these in lisp: 2014-10-21T00:08:53Z vanila: (+ 2 3) 2014-10-21T00:08:55Z vanila: (2 + 3 2014-10-21T00:08:56Z vanila: sorry 2014-10-21T00:08:58Z vanila: (2 + 3) 2014-10-21T00:09:03Z vanila: the first works and second doesnt 2014-10-21T00:09:12Z vanila: thats what i meant earlier 2014-10-21T00:09:16Z ijp: anyway, understanding code in $foo now will help you understand code in $bar later, because concepts transfer 2014-10-21T00:09:42Z jffmcc: Yeah I didnt understand the infix thing. But I know in scheme the arithmetic is diferent. I said Habit 2014-10-21T00:09:59Z vanila: ok! good :D 2014-10-21T00:10:59Z jffmcc: XD And also, when I wrote ((1 2 3) - 1), it was the #1. I didnt realize ijp's code was the letter l, for list XD 2014-10-21T00:12:14Z jffmcc: ijp, it will probably take me some time to understand your code. So far, I still have 1 more question to do for compsci hw, then I have a little chem hw. After finishing those, I will definetly try to understand your code 2014-10-21T00:13:00Z jffmcc: But I will need you to explain it, and I will probably ask very stupid questions, but bear with me. :D 2014-10-21T00:13:50Z ijp: if your brain hurts, it means you are learning 2014-10-21T00:13:52Z DrJepordyMan: for this function i have to implement for, do I need to use set!? (define (my-length sequence) (accumulate 0 sequence)) 2014-10-21T00:14:14Z jffmcc: Here is what I am thinking for my next problem. http://pastebin.com/75xChdQv 2014-10-21T00:15:31Z jffmcc: The pastebin just shows the question. The palindrome function is just every element except for the last element in the list, the last element, and then reverse 2014-10-21T00:15:59Z jffmcc: When length list is greater than 1 2014-10-21T00:16:15Z ijp: so, reverse it, take the cdr, and then append 2014-10-21T00:16:23Z jffmcc: Ex: (1 2 3) -> (1 2 3 2 1) 2014-10-21T00:17:37Z jffmcc: I wanted to make a recursion 2014-10-21T00:17:41Z askatasuna quit (Ping timeout: 260 seconds) 2014-10-21T00:18:32Z jffmcc: Since the length of the list is not given. 2014-10-21T00:19:08Z jffmcc: Oh nvm. ijp, your method is a LOT simpler and easier XD 2014-10-21T00:20:59Z ijp: doing it in one pass is interesting, since you have one recursive argument getting smaller, and the other bigger 2014-10-21T00:21:46Z ijp: hmm, I wonder what recursion scheme it is, certainly not one of the traditional ones 2014-10-21T00:27:15Z ijp: jffmcc: anyway, it is important to think in terms of these higher level list procedures you've already meat 2014-10-21T00:27:22Z ijp: er, met 2014-10-21T00:28:24Z ijp: and here is the one pass version of make-palindrome for you to look over later https://gist.github.com/9e4c9c9a21821012cf34 2014-10-21T00:29:31Z jffmcc: I think mine is simpler: http://pastebin.com/W6K8LgVA 2014-10-21T00:30:37Z ijp: jffmcc: well, you don't need to special case length 1 there 2014-10-21T00:30:47Z ijp: and that condition in the else doesn't matter for the result 2014-10-21T00:31:32Z jffmcc: No, if the list length was equal to 1, it would be (1 1) 2014-10-21T00:31:49Z jffmcc: Because I had append l cdr of reverse 2014-10-21T00:31:51Z ijp: rudybot: (define l (list 1)) 2014-10-21T00:31:52Z rudybot: ijp: Done. 2014-10-21T00:32:00Z ijp: rudybot: (append l (cdr (reverse l))) 2014-10-21T00:32:00Z rudybot: ijp: ; Value: '(1) 2014-10-21T00:32:25Z ijp: the problem case is the empty list 2014-10-21T00:32:40Z ijp: i.e. length 0 2014-10-21T00:32:48Z jffmcc: My teacher wrote in the instructions given a non-empty list 2014-10-21T00:34:17Z ijp: right, but you unnecessarily special cased length 1 2014-10-21T00:35:04Z jffmcc: Im a little confused 2014-10-21T00:35:28Z jffmcc: you defined l as the list of 1, so l = (1) 2014-10-21T00:35:56Z jffmcc: Oh nvm 2014-10-21T00:36:03Z DrJepordyMan: in scheme, how is a leaf represented? 2014-10-21T00:36:17Z jffmcc: cdr of reverse l would be () and append (1) () = (1) 2014-10-21T00:36:19Z DrJepordyMan: do trees in scheme use '() ? 2014-10-21T00:36:41Z ijp: some people might use lists as trees, but I'd generally make a struct for it 2014-10-21T00:39:51Z Riastradh quit (Ping timeout: 264 seconds) 2014-10-21T00:41:27Z robot-beethoven joined #scheme 2014-10-21T00:46:01Z ijp quit (Quit: sleep) 2014-10-21T00:46:05Z jusss joined #scheme 2014-10-21T00:47:58Z araujo quit (Read error: Connection reset by peer) 2014-10-21T00:48:49Z ByronJohnson quit (Ping timeout: 258 seconds) 2014-10-21T00:48:50Z araujo joined #scheme 2014-10-21T00:49:48Z jffmcc quit (Quit: Page closed) 2014-10-21T00:51:38Z Tbone139 joined #scheme 2014-10-21T00:52:17Z frkout_ joined #scheme 2014-10-21T00:54:51Z Tbone139: Hello! I'm fond of the 'named let' syntax for looping, but what's the best way to bind transient values based on each iteration's arguments? 2014-10-21T00:55:29Z turbofail: put another let in there 2014-10-21T00:55:46Z turbofail: that's kind of your only way to do it 2014-10-21T00:55:53Z frkout quit (Ping timeout: 244 seconds) 2014-10-21T00:56:00Z ByronJohnson joined #scheme 2014-10-21T00:56:46Z Natch joined #scheme 2014-10-21T00:56:51Z Tbone139: ah, thanks! 2014-10-21T00:56:54Z Natch left #scheme 2014-10-21T00:57:06Z Natch joined #scheme 2014-10-21T00:57:21Z DrJepordyMan quit (Ping timeout: 260 seconds) 2014-10-21T01:02:13Z Niac joined #scheme 2014-10-21T01:11:03Z joneshf-laptop joined #scheme 2014-10-21T01:15:53Z republican_devil joined #scheme 2014-10-21T01:19:18Z Guest_____ joined #scheme 2014-10-21T01:19:26Z republican_devil: scheme!!!! 2014-10-21T01:19:33Z republican_devil: for powerful websites!!!! 2014-10-21T01:19:38Z republican_devil: in less code!! 2014-10-21T01:19:50Z republican_devil: now can someone tell me if gambit can use 8 cores? 2014-10-21T01:20:02Z Guest_____: how would you compare two atoms and make them equal to a truth value? 2014-10-21T01:20:24Z republican_devil: eq or eql I guess 2014-10-21T01:20:36Z jusss: eq? 2014-10-21T01:20:40Z Guest_____: for example if (car l) =a then #t 2014-10-21T01:20:48Z mrowe_away is now known as mrowe 2014-10-21T01:21:09Z jusss: (if (eq? (car l) a) #t) 2014-10-21T01:21:18Z Guest_____: so whats the difference between eq and eql then 2014-10-21T01:22:19Z tobik quit (Ping timeout: 245 seconds) 2014-10-21T01:22:43Z jusss quit (Read error: No route to host) 2014-10-21T01:23:03Z jusss joined #scheme 2014-10-21T01:23:56Z Guest_____: ty jusss 2014-10-21T01:25:07Z tobik joined #scheme 2014-10-21T01:26:07Z pjb: Guest_____: read r5rs, it's very well explained there. 2014-10-21T01:26:42Z pjb: jusss: (if (eq? (car l) a) #t) gives an undefined results when (car l) is not a. 2014-10-21T01:26:50Z pjb: jusss: it is horrible! 2014-10-21T01:26:54Z pjb: jusss: just write: (eq? (car l) a) 2014-10-21T01:28:07Z republican_devil: https://www.gnu.org/software/guile/manual/html_node/Equality.html 2014-10-21T01:28:12Z jusss: pjb: I see 2014-10-21T01:28:16Z republican_devil: debian fighting systemd 2014-10-21T01:28:19Z republican_devil: AWESOME 2014-10-21T01:28:20Z republican_devil: :) 2014-10-21T01:28:24Z republican_devil: deb deb bo beb 2014-10-21T01:28:38Z republican_devil quit (Quit: Leaving.) 2014-10-21T01:29:12Z kongtomorrow quit 2014-10-21T01:32:18Z chaotic_good joined #scheme 2014-10-21T01:36:26Z bb010g joined #scheme 2014-10-21T01:47:52Z chaotic_good: systemd boon or bain? 2014-10-21T01:48:04Z jhao quit (Ping timeout: 244 seconds) 2014-10-21T01:49:02Z vanila: bain 2014-10-21T01:49:25Z vanila: debian is integrating systemd despite not coming toa consensus on whether they should or not :/ 2014-10-21T01:49:35Z vanila: it sucks, good luck to the forkers 2014-10-21T01:50:12Z chaotic_good: http://boycottsystemd.org/ 2014-10-21T01:50:17Z jhao joined #scheme 2014-10-21T01:50:20Z chaotic_good: yeah I am just readin about hat 2014-10-21T01:50:36Z chaotic_good: archlinux and centos have gone to systemd already 2014-10-21T01:50:38Z chaotic_good: wtf 2014-10-21T01:50:48Z chaotic_good: might be time to switch everything to openbsd! 2014-10-21T01:51:19Z jusss: I like system v init 2014-10-21T01:53:30Z vanila quit (Remote host closed the connection) 2014-10-21T01:54:43Z chaotic_good: I like that or bsd. 2014-10-21T01:54:44Z chaotic_good: :) 2014-10-21T01:55:41Z MichaelRaskin quit (Ping timeout: 260 seconds) 2014-10-21T01:58:56Z chaotic_good: now about gambit scheme being able to handle 100s of web users? 2014-10-21T01:59:02Z chaotic_good: using 8 core cpu? 2014-10-21T01:59:03Z chaotic_good: can it? 2014-10-21T01:59:09Z chaotic_good: or it is stuk on 1 cpu? 2014-10-21T01:59:25Z chaotic_good: do I just run 8 gambit webservers then? one per cpu? 2014-10-21T01:59:50Z chaotic_good: or does 1 webserver fork as many user sessions as needed, using all 8 cpu automatically? 2014-10-21T02:00:03Z chaotic_good: I am very curious about how scheme multiprocessing works 2014-10-21T02:02:58Z chaotic_good quit (Remote host closed the connection) 2014-10-21T02:03:02Z frkout_ quit (Remote host closed the connection) 2014-10-21T02:03:28Z frkout joined #scheme 2014-10-21T02:08:37Z frkout_ joined #scheme 2014-10-21T02:11:40Z Guest_____: how would you get rid of parentheses of the first list when you cons two list 2014-10-21T02:11:58Z frkout quit (Ping timeout: 255 seconds) 2014-10-21T02:12:03Z Guest_____: for example (cons '(a b) ('p q r)) 2014-10-21T02:12:25Z Guest_____: -> (a b p q r) 2014-10-21T02:13:03Z jusss: Guest_____: https://github.com/jusss/lisp/blob/master/my-string-catch 2014-10-21T02:13:25Z jusss: Guest_____: I write it last night 2014-10-21T02:14:13Z Guest_____: so we would have to create our own function? 2014-10-21T02:14:34Z jusss: Guest_____: of course 2014-10-21T02:14:53Z jusss: Guest_____: you can create your procedures 2014-10-21T02:15:04Z Guest_____: can you show one without lambda? 2014-10-21T02:15:19Z Guest_____: i never learned it that way 2014-10-21T02:15:44Z jusss: Guest_____: no procedure without lambda :( 2014-10-21T02:16:53Z Guest_____: ok then ty for the help 2014-10-21T02:17:09Z jusss: every procedure is lambda list 2014-10-21T02:17:40Z jusss: lisp-1, 2014-10-21T02:21:50Z _zacts_ joined #scheme 2014-10-21T02:22:02Z kongtomorrow joined #scheme 2014-10-21T02:26:41Z kongtomorrow quit (Client Quit) 2014-10-21T02:26:47Z Guest_____ quit (Quit: Page closed) 2014-10-21T02:36:42Z kongtomorrow joined #scheme 2014-10-21T02:47:04Z _zacts_ quit (Quit: Bye) 2014-10-21T02:47:33Z kongtomorrow quit 2014-10-21T02:48:41Z kongtomorrow joined #scheme 2014-10-21T02:50:04Z jeapostrophe quit (Ping timeout: 244 seconds) 2014-10-21T02:56:05Z frkout_ quit (Remote host closed the connection) 2014-10-21T02:56:33Z frkout joined #scheme 2014-10-21T02:57:41Z frkout quit (Remote host closed the connection) 2014-10-21T03:01:57Z frkout joined #scheme 2014-10-21T03:09:19Z kongtomorrow quit 2014-10-21T03:09:38Z SpiritShard joined #scheme 2014-10-21T03:12:34Z karswell quit (Read error: Connection reset by peer) 2014-10-21T03:13:10Z Shadox quit (Ping timeout: 255 seconds) 2014-10-21T03:13:27Z karswell joined #scheme 2014-10-21T03:15:52Z teiresias quit (Ping timeout: 255 seconds) 2014-10-21T03:16:53Z Vutral quit (Ping timeout: 260 seconds) 2014-10-21T03:17:06Z joast quit (Ping timeout: 240 seconds) 2014-10-21T03:18:07Z askatasuna joined #scheme 2014-10-21T03:18:20Z cdidd_ joined #scheme 2014-10-21T03:18:38Z teiresias joined #scheme 2014-10-21T03:21:32Z cdidd quit (Ping timeout: 245 seconds) 2014-10-21T03:23:04Z davexunit quit (Quit: Later) 2014-10-21T03:24:11Z Vutral joined #scheme 2014-10-21T03:27:24Z Vutral quit (Excess Flood) 2014-10-21T03:35:30Z Vutral_ joined #scheme 2014-10-21T03:39:01Z girrig quit (Ping timeout: 258 seconds) 2014-10-21T03:40:17Z Vutral joined #scheme 2014-10-21T03:42:20Z Vutral quit (Excess Flood) 2014-10-21T03:42:45Z Vutral joined #scheme 2014-10-21T03:47:32Z askatasuna quit (Ping timeout: 272 seconds) 2014-10-21T03:52:00Z amgarching joined #scheme 2014-10-21T03:56:01Z amgarchIn9 quit (Ping timeout: 260 seconds) 2014-10-21T03:59:01Z araujo quit (Quit: Leaving) 2014-10-21T04:00:06Z jhao quit (Ping timeout: 240 seconds) 2014-10-21T04:05:11Z Vutral quit (Ping timeout: 260 seconds) 2014-10-21T04:21:15Z Vutral joined #scheme 2014-10-21T04:25:46Z jhao joined #scheme 2014-10-21T04:31:29Z jhao quit (Ping timeout: 245 seconds) 2014-10-21T04:31:39Z stepnem joined #scheme 2014-10-21T04:43:46Z kongtomorrow joined #scheme 2014-10-21T04:46:27Z kongtomorrow quit (Client Quit) 2014-10-21T04:54:40Z girrig joined #scheme 2014-10-21T05:06:29Z girrig quit (Ping timeout: 260 seconds) 2014-10-21T05:07:36Z oleo quit (Quit: Verlassend) 2014-10-21T05:07:57Z anannie quit (Ping timeout: 258 seconds) 2014-10-21T05:11:45Z kongtomorrow joined #scheme 2014-10-21T05:11:47Z Guest65070 joined #scheme 2014-10-21T05:14:12Z SpiritShard quit (Quit: Leaving) 2014-10-21T05:16:04Z Guest65070 quit (Ping timeout: 245 seconds) 2014-10-21T05:31:29Z jhao joined #scheme 2014-10-21T05:36:48Z jhao quit (Ping timeout: 255 seconds) 2014-10-21T05:42:41Z bjz joined #scheme 2014-10-21T05:47:15Z girrig joined #scheme 2014-10-21T05:48:39Z asumu quit (Ping timeout: 265 seconds) 2014-10-21T05:48:43Z hiroakip joined #scheme 2014-10-21T05:52:12Z jewel quit (Ping timeout: 260 seconds) 2014-10-21T05:59:08Z frkout_ joined #scheme 2014-10-21T05:59:48Z frkout_ quit (Read error: Connection reset by peer) 2014-10-21T06:00:09Z frkout_ joined #scheme 2014-10-21T06:01:57Z frkout quit (Ping timeout: 245 seconds) 2014-10-21T06:09:36Z hiroakip quit (Ping timeout: 250 seconds) 2014-10-21T06:09:41Z gr8 joined #scheme 2014-10-21T06:10:11Z gr8: hi. is there a nice text editor that is written purely in Scheme? 2014-10-21T06:11:55Z tadni quit (Remote host closed the connection) 2014-10-21T06:16:59Z gr8 quit (Changing host) 2014-10-21T06:16:59Z gr8 joined #scheme 2014-10-21T06:22:37Z tadni joined #scheme 2014-10-21T06:27:23Z ecraven: gr8: Edwin :) 2014-10-21T06:28:20Z jewel joined #scheme 2014-10-21T06:30:28Z chaotic_good joined #scheme 2014-10-21T06:31:50Z chaotic_good: is performance ever a problem in scheme? 2014-10-21T06:32:47Z gr8: ecraven: I wonder why I didn't find this... ^^ does Edwin support syntax highlighting for other PLs than Scheme? 2014-10-21T06:34:58Z chaotic_good: challenge question for the night: 2014-10-21T06:35:05Z chaotic_good: given a file of basketball stats 2014-10-21T06:35:26Z chaotic_good: produce the point per shot and year for each year the player played 2014-10-21T06:35:43Z chaotic_good: column 7 has points per game 2014-10-21T06:35:50Z chaotic_good: 10 is firld goals 2014-10-21T06:36:23Z chaotic_good: 13 is free throws taken 2014-10-21T06:36:23Z chaotic_good: points per shot is 7/($10+($13/2) 2014-10-21T06:40:11Z mornfall joined #scheme 2014-10-21T06:52:09Z asumu joined #scheme 2014-10-21T06:53:04Z Niac quit (Read error: Connection reset by peer) 2014-10-21T06:53:05Z wingo joined #scheme 2014-10-21T06:53:22Z Niac joined #scheme 2014-10-21T06:58:04Z frkout joined #scheme 2014-10-21T06:58:17Z frkout_ quit (Read error: Connection reset by peer) 2014-10-21T07:01:58Z chaotic_good quit (Quit: Leaving.) 2014-10-21T07:02:10Z frkout quit (Remote host closed the connection) 2014-10-21T07:02:37Z frkout joined #scheme 2014-10-21T07:08:24Z kongtomorrow quit 2014-10-21T07:10:23Z DGASAU quit (Read error: Connection reset by peer) 2014-10-21T07:10:53Z DGASAU joined #scheme 2014-10-21T07:10:59Z gr8 quit (Ping timeout: 244 seconds) 2014-10-21T07:17:40Z mrowe is now known as mrowe_away 2014-10-21T07:20:33Z jhao joined #scheme 2014-10-21T07:25:27Z jhao quit (Ping timeout: 244 seconds) 2014-10-21T07:37:51Z amgarching quit (Ping timeout: 255 seconds) 2014-10-21T07:40:30Z b4283 joined #scheme 2014-10-21T07:48:23Z DGASAU quit (Read error: Connection reset by peer) 2014-10-21T07:48:53Z DGASAU joined #scheme 2014-10-21T07:55:08Z vinleod joined #scheme 2014-10-21T07:57:42Z mutley89 quit (Ping timeout: 265 seconds) 2014-10-21T08:01:01Z frkout_ joined #scheme 2014-10-21T08:04:51Z frkout quit (Ping timeout: 255 seconds) 2014-10-21T08:08:54Z Zeedox joined #scheme 2014-10-21T08:14:16Z arrdem quit (Quit: leaving) 2014-10-21T08:21:30Z anannie joined #scheme 2014-10-21T08:21:30Z anannie quit (Changing host) 2014-10-21T08:21:30Z anannie joined #scheme 2014-10-21T08:37:04Z mutley89 joined #scheme 2014-10-21T08:51:21Z jusss quit (Ping timeout: 265 seconds) 2014-10-21T08:51:40Z barmixer-bot joined #scheme 2014-10-21T09:01:25Z frkout_ quit (Remote host closed the connection) 2014-10-21T09:01:52Z frkout joined #scheme 2014-10-21T09:05:23Z barmixer-bot quit (Remote host closed the connection) 2014-10-21T09:08:06Z jusss joined #scheme 2014-10-21T09:09:17Z jhao joined #scheme 2014-10-21T09:12:24Z germ13 quit (Ping timeout: 244 seconds) 2014-10-21T09:13:59Z jhao quit (Ping timeout: 245 seconds) 2014-10-21T09:32:57Z Niac quit (Remote host closed the connection) 2014-10-21T09:42:39Z jusss quit (Quit: ERC Version 5.2 (IRC client for Emacs)) 2014-10-21T09:44:04Z jeapostrophe joined #scheme 2014-10-21T09:44:04Z jeapostrophe quit (Changing host) 2014-10-21T09:44:04Z jeapostrophe joined #scheme 2014-10-21T10:03:44Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T10:07:57Z Tbone139 quit (Ping timeout: 260 seconds) 2014-10-21T10:21:46Z BossKonaSegwaY quit (Ping timeout: 240 seconds) 2014-10-21T10:35:03Z BossKonaSegwaY joined #scheme 2014-10-21T10:45:16Z taylanub quit (Remote host closed the connection) 2014-10-21T10:48:02Z taylanub joined #scheme 2014-10-21T10:52:34Z Vutral_ quit (Ping timeout: 258 seconds) 2014-10-21T10:53:28Z Vutral_ joined #scheme 2014-10-21T10:57:42Z Tbone139 joined #scheme 2014-10-21T10:58:02Z jhao joined #scheme 2014-10-21T10:58:04Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T10:58:35Z alezost joined #scheme 2014-10-21T11:02:09Z Vutral quit (Ping timeout: 260 seconds) 2014-10-21T11:02:58Z jhao quit (Ping timeout: 255 seconds) 2014-10-21T11:12:36Z Vutral joined #scheme 2014-10-21T11:13:59Z Vutral quit (Excess Flood) 2014-10-21T11:15:59Z Vutral joined #scheme 2014-10-21T11:23:23Z Vutral quit (Excess Flood) 2014-10-21T11:26:25Z Vutral joined #scheme 2014-10-21T11:30:33Z gravicappa joined #scheme 2014-10-21T11:30:47Z pnkfelix joined #scheme 2014-10-21T11:35:27Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T11:35:45Z jusss joined #scheme 2014-10-21T11:36:22Z karswell quit (Remote host closed the connection) 2014-10-21T11:37:05Z guampa quit (*.net *.split) 2014-10-21T11:37:24Z gravicappa quit (*.net *.split) 2014-10-21T11:37:24Z fikusz quit (*.net *.split) 2014-10-21T11:37:25Z byte48 quit (*.net *.split) 2014-10-21T11:37:25Z defanor quit (*.net *.split) 2014-10-21T11:37:25Z Kabaka quit (*.net *.split) 2014-10-21T11:37:37Z defanor joined #scheme 2014-10-21T11:37:46Z byte48 joined #scheme 2014-10-21T11:37:49Z fikusz joined #scheme 2014-10-21T11:38:11Z byte48 is now known as Guest14756 2014-10-21T11:40:56Z Kabaka joined #scheme 2014-10-21T11:53:30Z b4283 quit (Read error: Connection reset by peer) 2014-10-21T11:53:45Z b4283 joined #scheme 2014-10-21T12:07:45Z kuribas joined #scheme 2014-10-21T12:13:45Z guampa joined #scheme 2014-10-21T12:19:42Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-10-21T12:23:25Z _5kg quit (Ping timeout: 258 seconds) 2014-10-21T12:27:52Z _5kg joined #scheme 2014-10-21T12:28:49Z jhao joined #scheme 2014-10-21T12:33:22Z jhao quit (Ping timeout: 240 seconds) 2014-10-21T12:35:33Z alezost joined #scheme 2014-10-21T12:35:53Z DGASAU quit (Read error: Connection reset by peer) 2014-10-21T12:36:24Z DGASAU joined #scheme 2014-10-21T12:56:32Z jusss: mit/gnu scheme , run-shell-command , wait for subprocess, how to make it return right now ? 2014-10-21T12:58:20Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T13:02:14Z davexunit joined #scheme 2014-10-21T13:08:37Z askatasuna joined #scheme 2014-10-21T13:28:01Z oleo joined #scheme 2014-10-21T13:35:20Z dlowe joined #scheme 2014-10-21T13:35:58Z alezost joined #scheme 2014-10-21T13:36:40Z gr8 joined #scheme 2014-10-21T13:36:56Z gr8 quit (Changing host) 2014-10-21T13:36:56Z gr8 joined #scheme 2014-10-21T13:42:37Z taylanub quit (Disconnected by services) 2014-10-21T13:43:06Z taylanub joined #scheme 2014-10-21T13:43:56Z ecraven: jusss: "foo &" 2014-10-21T13:44:55Z gr8: any idea why Edwin is not in the Debian repository? 2014-10-21T13:45:29Z jusss: ecraven: it's in win7 2014-10-21T13:45:41Z jusss: not bash 2014-10-21T13:47:30Z ecraven: gr8: edwin is included in mit/gnu scheme 2014-10-21T13:47:53Z gr8: thanks! 2014-10-21T13:50:32Z MrSavage joined #scheme 2014-10-21T13:59:20Z aftershave joined #scheme 2014-10-21T13:59:56Z cr`nge quit (Read error: Connection reset by peer) 2014-10-21T14:00:25Z cr`nge joined #scheme 2014-10-21T14:02:34Z jusss: ecraven: I found chez-scheme support run shell command and retrun right now ,procedure process,but I cann't find it in mit/gnu scheme 2014-10-21T14:02:51Z ecraven: check the manual, mit-scheme-ref.pdf 2014-10-21T14:03:17Z MrSavage quit (Ping timeout: 244 seconds) 2014-10-21T14:04:34Z joast joined #scheme 2014-10-21T14:14:39Z gr8: ecraven: ehm ... are you sure? https://packages.debian.org/wheezy/i386/mit-scheme/filelist I can't find anything here that looks like a text editor 2014-10-21T14:15:36Z ecraven: gr8: run "mit-scheme -edit" 2014-10-21T14:15:59Z _tca: or (edwin) 2014-10-21T14:16:33Z gr8: strange. ok, thanks ^^ 2014-10-21T14:17:31Z jhao joined #scheme 2014-10-21T14:17:53Z gr8: why are they merged to one binary? 2014-10-21T14:19:35Z ecraven: gr8: the editor is written in Scheme and runs inside MIT/GNU Scheme 2014-10-21T14:19:44Z ecraven: if you want, do alias edwin="mit-scheme -edit" :) 2014-10-21T14:19:56Z gr8: ah ok. makes sense. 2014-10-21T14:20:27Z gr8: too bad that C-x C-+ for increasing the font size does not work 2014-10-21T14:22:19Z jhao quit (Ping timeout: 245 seconds) 2014-10-21T14:22:53Z gr8: how do I paste? middle click does not work ... 2014-10-21T14:25:21Z ecraven: is it an X edwin or a terminal edwin? 2014-10-21T14:25:33Z ecraven: mind that edwin is a rather rudimentary editor in some ways 2014-10-21T14:25:37Z ecraven: black and white only, for example 2014-10-21T14:25:47Z ecraven: only one font for everything 2014-10-21T14:26:02Z gr8: I see ... maybe not what I was looking for, actually 2014-10-21T14:26:15Z gr8: it is under X, and C-y did work for pasting 2014-10-21T14:27:52Z anannie quit (Remote host closed the connection) 2014-10-21T14:29:29Z gr8: for running inside mit/gnu, edwin could maybe be executed in other Scheme interpeters if shipped independently 2014-10-21T14:30:10Z pnkfelix quit (Ping timeout: 265 seconds) 2014-10-21T14:33:30Z jusss: ecraven: I check the manual, but I cann't find what I wanna find :( 2014-10-21T14:34:36Z BossKonaSegwaY1 joined #scheme 2014-10-21T14:36:20Z pnkfelix joined #scheme 2014-10-21T14:36:32Z BossKonaSegwaY quit (Ping timeout: 245 seconds) 2014-10-21T14:41:21Z ecraven: jusss: page 267, run-shell-command. add a & at the end, to run it in the background 2014-10-21T14:41:42Z ecraven: ah, indeed not 2014-10-21T14:41:45Z ecraven: & doesn't work 2014-10-21T14:50:12Z jlongster joined #scheme 2014-10-21T14:51:51Z jusss: ecraven: ... I'm in win7 2014-10-21T14:56:15Z ecraven: jusss: what do you want to do? 2014-10-21T14:58:44Z jusss: ecraven: make a trigger, when my irc-bot receive a msg then run a shell command ,like mplayer xxx 2014-10-21T14:58:54Z jusss: ecraven: notify me , 2014-10-21T15:00:12Z ecraven: either run it synchronously (with run-shell-command), or run it in a separate thread 2014-10-21T15:02:21Z araujo joined #scheme 2014-10-21T15:02:36Z araujo quit (Changing host) 2014-10-21T15:02:36Z araujo joined #scheme 2014-10-21T15:03:35Z Riastradh joined #scheme 2014-10-21T15:04:42Z jusss quit (Read error: Connection reset by peer) 2014-10-21T15:04:55Z iterrogo joined #scheme 2014-10-21T15:23:23Z kuribas quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T15:24:00Z theseb joined #scheme 2014-10-21T15:40:51Z przl joined #scheme 2014-10-21T15:42:31Z ananna joined #scheme 2014-10-21T15:42:37Z ananna quit (Changing host) 2014-10-21T15:42:37Z ananna joined #scheme 2014-10-21T15:49:53Z germ13 joined #scheme 2014-10-21T15:55:29Z lrs joined #scheme 2014-10-21T15:56:41Z lrs: Can someone help me with this intersection problem? http://pastebin.com/m9NYJppj 2014-10-21T15:57:09Z lrs: Im not sure how Im gonna add the res list 2014-10-21T15:57:16Z lrs: When member? is correct 2014-10-21T15:59:21Z gravicappa joined #scheme 2014-10-21T16:03:15Z jhao joined #scheme 2014-10-21T16:05:57Z gr8 left #scheme 2014-10-21T16:06:25Z MrSavage joined #scheme 2014-10-21T16:08:04Z lrs quit (Quit: Leaving) 2014-10-21T16:08:12Z jhao quit (Ping timeout: 245 seconds) 2014-10-21T16:10:47Z lrs joined #scheme 2014-10-21T16:10:49Z lrs: ANyone? 2014-10-21T16:11:03Z lrs: ;_; 2014-10-21T16:11:33Z lrs: I need to take the ones which are members of both 1 an 2 2014-10-21T16:11:43Z lrs: And send them to res 2014-10-21T16:11:47Z lrs: And then return res 2014-10-21T16:11:48Z lrs: ;_; 2014-10-21T16:19:19Z wingo quit (Ping timeout: 272 seconds) 2014-10-21T16:21:10Z bb010g quit (Quit: Connection closed for inactivity) 2014-10-21T16:27:37Z lrs quit (Ping timeout: 265 seconds) 2014-10-21T16:28:21Z daviid joined #scheme 2014-10-21T16:28:39Z b4283 quit (Quit: Konversation terminated!) 2014-10-21T16:35:42Z fridim_ quit (Ping timeout: 244 seconds) 2014-10-21T16:40:37Z amgarching joined #scheme 2014-10-21T16:42:40Z Nizumzen joined #scheme 2014-10-21T17:03:17Z kongtomorrow joined #scheme 2014-10-21T17:06:00Z iterrogo quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T17:06:24Z iterrogo joined #scheme 2014-10-21T17:06:54Z cr`nge quit (Remote host closed the connection) 2014-10-21T17:12:09Z amgarching quit (Ping timeout: 260 seconds) 2014-10-21T17:13:06Z mutley89 quit (Ping timeout: 246 seconds) 2014-10-21T17:17:35Z amgarching joined #scheme 2014-10-21T17:19:03Z jhao joined #scheme 2014-10-21T17:20:44Z oldskirt joined #scheme 2014-10-21T17:20:59Z lrs joined #scheme 2014-10-21T17:21:14Z lrs: Im completely stuck 2014-10-21T17:21:51Z wingo joined #scheme 2014-10-21T17:21:59Z pnkfelix quit (Quit: rcirc on GNU Emacs 24.3.92.1) 2014-10-21T17:22:29Z Riastradh: Have you tried Loosner's Castor-Oil Flakes, with REAL glycerine vibrofoam? They don't just clean your mouth out -- they clean the whole system, right on down the line! 2014-10-21T17:22:43Z lrs: :| 2014-10-21T17:23:45Z jhao quit (Ping timeout: 255 seconds) 2014-10-21T17:24:23Z Riastradh: Ohhhhhh, it ain't no use if you ain't got the boost, the boost you get from Loosner's! Looooooooosner's, the all-weather breakfast. 2014-10-21T17:24:27Z Riastradh: Ahem. 2014-10-21T17:24:33Z Riastradh: Carry on! 2014-10-21T17:28:09Z lrs: ;_; 2014-10-21T17:28:14Z lrs: I need help. 2014-10-21T17:29:23Z Riastradh: What do you need help with? 2014-10-21T17:29:26Z theseb: Riastradh: Guile Emacs is working *now*..you may want to build it and play 2014-10-21T17:30:19Z lrs: Riastradh, http://pastebin.com/bmQpZpWp 2014-10-21T17:30:28Z lrs: Im trying to a create a function that does the intersection of two sets 2014-10-21T17:30:34Z lrs: Example: 2014-10-21T17:30:36Z jeapostrophe quit (Ping timeout: 246 seconds) 2014-10-21T17:30:59Z lrs: A=(2 3 5) B=(7 5 9) 2014-10-21T17:31:06Z lrs: intersec=5 2014-10-21T17:31:34Z lrs: I want it to check if its an member? of the set 2014-10-21T17:31:35Z lrs: And if it is 2014-10-21T17:31:44Z lrs: Then send it to the new list that I will return 2014-10-21T17:31:49Z lrs: I have a function member? that does this 2014-10-21T17:32:06Z lrs: My problem is adding all the stuff that gives true from member? to that new result list 2014-10-21T17:32:11Z lrs: And then printing that one out 2014-10-21T17:32:12Z lrs: :S 2014-10-21T17:35:19Z hiroakip joined #scheme 2014-10-21T17:41:32Z lrs: Riastradh, Any ideas? 2014-10-21T17:41:34Z c74d quit (Ping timeout: 265 seconds) 2014-10-21T17:42:45Z Riastradh: What happens when you try that? 2014-10-21T17:43:26Z aftershave quit (Quit: Textual IRC Client: www.textualapp.com) 2014-10-21T17:43:33Z hiroakip quit (Ping timeout: 272 seconds) 2014-10-21T17:43:57Z lrs: Riastradh, Nothing at all really 2014-10-21T17:44:04Z lrs: I havent written it 2014-10-21T17:45:38Z c74d joined #scheme 2014-10-21T17:45:45Z lrs: Riastradh, I have to make it so that 2014-10-21T17:45:54Z lrs: It checks member? of set 2 and set 1 2014-10-21T17:46:09Z lrs: car set 2 is in set 1 2014-10-21T17:46:17Z lrs: And if thats true 2014-10-21T17:46:24Z lrs: Its gonna send that to the list res 2014-10-21T17:46:29Z lrs: That I later on return 2014-10-21T17:46:32Z lrs: And print out 2014-10-21T17:46:33Z lrs: :S 2014-10-21T17:46:37Z lrs: And I have no fucking idea how to do that 2014-10-21T17:47:22Z hiroakip joined #scheme 2014-10-21T17:50:21Z oleo is now known as Guest32851 2014-10-21T17:51:59Z oleo__ joined #scheme 2014-10-21T17:52:10Z przl quit (Ping timeout: 244 seconds) 2014-10-21T17:53:12Z Guest32851 quit (Ping timeout: 245 seconds) 2014-10-21T17:56:56Z jeapostrophe joined #scheme 2014-10-21T17:56:56Z jeapostrophe quit (Changing host) 2014-10-21T17:56:56Z jeapostrophe joined #scheme 2014-10-21T18:01:51Z jeapostrophe quit (Ping timeout: 256 seconds) 2014-10-21T18:03:05Z FracV quit (Quit: leaving) 2014-10-21T18:03:15Z FracV joined #scheme 2014-10-21T18:04:19Z FracV quit (Changing host) 2014-10-21T18:04:19Z FracV joined #scheme 2014-10-21T18:04:45Z przl joined #scheme 2014-10-21T18:05:07Z taylanub quit (Remote host closed the connection) 2014-10-21T18:05:49Z taylanub joined #scheme 2014-10-21T18:05:50Z przl quit (Client Quit) 2014-10-21T18:05:51Z lrs: Riastradh, Any ideas? 2014-10-21T18:05:54Z gravicappa quit (Remote host closed the connection) 2014-10-21T18:10:33Z Vutral quit (Ping timeout: 260 seconds) 2014-10-21T18:10:52Z Riastradh: lrs: Sorry, I don't have time to help you at the moment, but maybe someone else can -- or, if this is for a class, ask your instructor or TA. 2014-10-21T18:11:06Z lrs: Yeah. maybe so 2014-10-21T18:15:46Z Vutral joined #scheme 2014-10-21T18:18:22Z amgarching quit (Ping timeout: 265 seconds) 2014-10-21T18:18:47Z hiroakip quit (Ping timeout: 265 seconds) 2014-10-21T18:18:55Z lrs: Damnit. 2014-10-21T18:19:24Z MichaelRaskin joined #scheme 2014-10-21T18:19:30Z hiroakip joined #scheme 2014-10-21T18:21:44Z arrdem joined #scheme 2014-10-21T18:24:13Z arrdem quit (Client Quit) 2014-10-21T18:24:25Z arrdem joined #scheme 2014-10-21T18:29:23Z gravicappa joined #scheme 2014-10-21T18:30:33Z joneshf-laptop quit (Remote host closed the connection) 2014-10-21T18:36:13Z Vutral quit (Ping timeout: 260 seconds) 2014-10-21T18:38:28Z Vutral joined #scheme 2014-10-21T18:40:08Z amgarching joined #scheme 2014-10-21T18:45:20Z khisanth_ joined #scheme 2014-10-21T18:47:36Z Khisanth quit (Ping timeout: 246 seconds) 2014-10-21T18:47:45Z hiroakip quit (Ping timeout: 244 seconds) 2014-10-21T18:48:12Z hiroakip joined #scheme 2014-10-21T18:54:20Z oleo__ quit (Quit: Verlassend) 2014-10-21T18:56:37Z oleo joined #scheme 2014-10-21T18:57:35Z jeapostrophe joined #scheme 2014-10-21T18:57:37Z jeapostrophe quit (Changing host) 2014-10-21T18:57:37Z jeapostrophe joined #scheme 2014-10-21T19:02:26Z jeapostrophe quit (Ping timeout: 244 seconds) 2014-10-21T19:07:45Z jhao joined #scheme 2014-10-21T19:08:24Z gravicappa quit (Remote host closed the connection) 2014-10-21T19:11:37Z bb010g joined #scheme 2014-10-21T19:13:01Z jhao quit (Ping timeout: 260 seconds) 2014-10-21T19:30:37Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-10-21T19:33:37Z zacts- joined #scheme 2014-10-21T19:38:08Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T19:47:13Z hiroakip quit (Ping timeout: 255 seconds) 2014-10-21T19:47:15Z vanila joined #scheme 2014-10-21T19:49:13Z hiroakip joined #scheme 2014-10-21T19:53:58Z zacts- quit (Quit: Bye) 2014-10-21T19:58:20Z jeapostrophe joined #scheme 2014-10-21T19:58:20Z jeapostrophe quit (Changing host) 2014-10-21T19:58:20Z jeapostrophe joined #scheme 2014-10-21T20:00:21Z MrSavage quit (Ping timeout: 255 seconds) 2014-10-21T20:02:41Z alezost joined #scheme 2014-10-21T20:02:46Z hiroakip quit (Ping timeout: 265 seconds) 2014-10-21T20:03:11Z jeapostrophe quit (Ping timeout: 244 seconds) 2014-10-21T20:08:03Z hiroakip joined #scheme 2014-10-21T20:08:32Z jhao joined #scheme 2014-10-21T20:13:18Z jhao quit (Ping timeout: 250 seconds) 2014-10-21T20:13:54Z MrSavage joined #scheme 2014-10-21T20:20:17Z wingo quit (Ping timeout: 245 seconds) 2014-10-21T20:24:01Z Vutral quit (Ping timeout: 260 seconds) 2014-10-21T20:30:24Z kongtomorrow quit 2014-10-21T20:42:01Z Vutral joined #scheme 2014-10-21T20:45:31Z zeroish joined #scheme 2014-10-21T20:46:10Z Nizumzen joined #scheme 2014-10-21T20:46:40Z oldskirt quit (Ping timeout: 250 seconds) 2014-10-21T20:56:43Z bars0 joined #scheme 2014-10-21T20:57:24Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T20:57:30Z jewel quit (Ping timeout: 250 seconds) 2014-10-21T20:58:48Z pnpuff joined #scheme 2014-10-21T20:59:46Z theseb left #scheme 2014-10-21T21:02:37Z pnkfelix joined #scheme 2014-10-21T21:02:54Z cjh`_: lrs: your intersection is looking quite good, just a few things to think through 2014-10-21T21:03:09Z lrs: cjh`_, Whats that? 2014-10-21T21:03:15Z cjh`_: lrs: what happens if (car set2) is not in set1? what will your cond do? 2014-10-21T21:04:09Z lrs: If its not in set1 it will do a else 2014-10-21T21:04:16Z lrs: Which I dont really know what to write 2014-10-21T21:04:32Z cjh`_: ok then 2014-10-21T21:04:44Z cjh`_: if we first look at what happens when (member? (car set2) set1) is true 2014-10-21T21:05:12Z lrs: Well then its supposed to send it to the res list 2014-10-21T21:05:18Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-10-21T21:05:29Z lrs: and at the end when its come to 0 in the lists, its gonna return that list res 2014-10-21T21:05:44Z bars0 quit (Quit: leaving) 2014-10-21T21:06:46Z cjh`_: lrs: notice that your rest list never changes, but your set1 does. 2014-10-21T21:06:57Z lrs: Right 2014-10-21T21:07:09Z lrs: Or what do you mean? rest is to be updated 2014-10-21T21:07:15Z lrs: Everytime member? is correct 2014-10-21T21:07:48Z cjh`_: yes, everytime member? is true you should add that value to your result set, currently you are adding it to set 2 2014-10-21T21:08:18Z lrs: Where? 2014-10-21T21:08:20Z cjh`_: sorry, currently you are adding it to set 1 (via '(cons (car set2) set1)') 2014-10-21T21:08:23Z lrs: Do you mean 2014-10-21T21:09:47Z lrs: (cons (car set2) res) 2014-10-21T21:09:49Z lrs: I changed it to that 2014-10-21T21:09:53Z lrs: Maybe you look at an old one 2014-10-21T21:09:57Z cjh`_: can you show me your updated code? 2014-10-21T21:10:01Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T21:10:16Z cjh`_: ahh sorry i was looking at http://pastebin.com/m9NYJppj 2014-10-21T21:11:36Z pnpuff quit (Quit: Lost terminal) 2014-10-21T21:12:58Z cjh`_: lrs: so now notice that you are checking member twice 2014-10-21T21:13:11Z oldskirt joined #scheme 2014-10-21T21:13:13Z lrs: Should it just be 2014-10-21T21:13:27Z lrs: ((member? (car set2) set1) (car set1) set2) 2014-10-21T21:13:27Z lrs: ? 2014-10-21T21:14:14Z cjh`_: you dont need to check both directions 2014-10-21T21:14:29Z cjh`_: if you get the item out of set1, and it is in set2( member? is true) then you know it must be in both. 2014-10-21T21:14:41Z lrs: So i remove the if set 2014-10-21T21:14:50Z lrs: I remove that? 2014-10-21T21:15:12Z c74d quit (Ping timeout: 265 seconds) 2014-10-21T21:16:15Z zacts- joined #scheme 2014-10-21T21:16:21Z cjh`_: show me in a paste :) 2014-10-21T21:16:52Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T21:17:26Z cjh`_: ok, now notice that you are calling intersec with only 2 args, but it takes 3. 2014-10-21T21:17:49Z c74d joined #scheme 2014-10-21T21:18:53Z pjb quit (Remote host closed the connection) 2014-10-21T21:19:55Z lrs: (cons (car set2)) (cdr set2) res ) 2014-10-21T21:19:55Z lrs: ? 2014-10-21T21:20:30Z cjh`_: cons takes 2 args, then you would only be supplying one 2014-10-21T21:20:38Z cjh`_: but (cdr set2) is good, as we want set1 to shrink 2014-10-21T21:20:43Z cjh`_: but your res is also still not growing 2014-10-21T21:20:59Z lrs: (res (+ n 1) ? 2014-10-21T21:21:01Z cjh`_: gah, sorry >but (cdr set2) is good, as we want set1 to shrink 2014-10-21T21:21:08Z cjh`_: should be >but (cdr set2) is good, as we want set2 to shrink 2014-10-21T21:21:25Z cjh`_: lrs: what would that do? 2014-10-21T21:21:33Z lrs: Im not sure :| 2014-10-21T21:21:38Z lrs: Im so fucking bad at this part 2014-10-21T21:21:53Z Nizumzen joined #scheme 2014-10-21T21:22:06Z cjh`_: do you understand what cons, car and cdr all do? 2014-10-21T21:22:11Z lrs: Yes 2014-10-21T21:22:41Z pjb joined #scheme 2014-10-21T21:22:44Z lrs: Its the intersec calling stuff and how i apply all that stuff to the res list 2014-10-21T21:22:48Z lrs: That I have problem with 2014-10-21T21:22:53Z cjh`_: ok, just checking :) 2014-10-21T21:23:07Z pjb is now known as Guest44436 2014-10-21T21:23:14Z cjh`_: so for this we want res to grow, and we want it to only contain the items that are in both set1 and set2 2014-10-21T21:23:34Z cjh`_: we keep doing this over and over again, until we run out of new items to test, and then we should return res 2014-10-21T21:24:10Z Guest44436 is now known as pjb 2014-10-21T21:24:50Z cjh`_: so just focussing on the 3rd arg of intersect res, if I have res and (car set2), how do I join them together? 2014-10-21T21:25:06Z lrs: Thats the problem 2014-10-21T21:25:08Z lrs: cons 2014-10-21T21:25:09Z lrs: ? 2014-10-21T21:25:26Z cjh`_: yes 2014-10-21T21:25:34Z lrs: cons (car set2) res 2014-10-21T21:25:48Z akkad: "my god, it's full of cars" 2014-10-21T21:25:51Z akkad: I want a tshirt of that 2014-10-21T21:26:00Z cjh`_: lrs: yes, which we then pass as res to the next call (so our result list grows) 2014-10-21T21:26:21Z lrs: What do you mean "pass as res" 2014-10-21T21:26:40Z cjh`_: lrs: in our recursive call to intersec we pass that as the 3rd argument 2014-10-21T21:27:09Z cjh`_: lrs: if you understand that can you please update your paste 2014-10-21T21:28:06Z lrs: http://pastebin.com/bmQpZpWp cjh`_ 2014-10-21T21:28:39Z cjh`_: lrs: (res) would call res as a function 2014-10-21T21:28:49Z askatasuna quit (Ping timeout: 260 seconds) 2014-10-21T21:28:51Z lrs: car res? 2014-10-21T21:28:57Z cjh`_: lrs: and you should leave in the first 2 args in that call 2014-10-21T21:29:11Z cjh`_: lrs: but res is the list of everything we want, we want to keep all of res, not just the first arg. 2014-10-21T21:29:30Z lrs: (car res) (cdr res) 2014-10-21T21:29:31Z lrs: ? 2014-10-21T21:29:52Z cjh`_: if you did `(cons (car res) (cdr res))` then nothing would change. 2014-10-21T21:30:05Z cjh`_: what we want to do is make a cons of our new item and the entire res 2014-10-21T21:30:08Z lrs: (cons (car set2) (car res) (cdr res) 2014-10-21T21:30:12Z lrs: Is how i did it now 2014-10-21T21:30:30Z lrs: (intersec (cons (car set2) (car res) (cdr res) 2014-10-21T21:30:32Z cjh`_: cons only takes 2 arguments, why are you trying to apply car and cdr to res? 2014-10-21T21:30:49Z lrs: I dont know 2014-10-21T21:30:54Z lrs: :S 2014-10-21T21:31:01Z lrs: I m think 2014-10-21T21:31:06Z lrs: "Dont do anything to res" 2014-10-21T21:31:14Z lrs: "Just inser everything from member?" 2014-10-21T21:31:21Z lrs: And then im thinking 2014-10-21T21:31:35Z lrs: Or no I cant have set2 at all in there 2014-10-21T21:31:55Z cjh`_: lrs: what happens if we just pass res as the second argument to cons? 2014-10-21T21:32:48Z lrs: Im not sure 2014-10-21T21:33:10Z cjh`_: cons takes 2 things and sticks them together, it doesnt care what they are. 2014-10-21T21:33:42Z cjh`_: we want to stick together our new item (car set2) and res (our current result set). 2014-10-21T21:34:47Z lrs: Ah 2014-10-21T21:35:22Z lrs: (intersec (cons (car set2) res) 2014-10-21T21:35:23Z lrs: ? 2014-10-21T21:35:41Z cjh`_: that is good as our 3rd argument to intersec, what happend to the first and second though? 2014-10-21T21:38:45Z lrs: cjh`_, Im not sure 2014-10-21T21:38:48Z lrs: How to write this 2014-10-21T21:39:11Z cjh`_: in that last paste you removed the first 2 args, why dont you put them back in, along with your new 3rd arg we just discussed 2014-10-21T21:39:37Z kongtomorrow joined #scheme 2014-10-21T21:41:00Z lrs: cjh`_, Which one 2014-10-21T21:42:25Z lrs: (res) 2014-10-21T21:42:27Z lrs: And ??? 2014-10-21T21:42:28Z lrs: or 2014-10-21T21:42:38Z cjh`_: so (cons (car set2) res) is our 3rd argument to intersec, so far we have (intersec ? ? (cons (car set2) res)) 2014-10-21T21:43:13Z cjh`_: we still have to replace each of the ?, so for the second ? we want set2 to shrink, you had that working before. 2014-10-21T21:43:32Z lrs: (car set2) ? 2014-10-21T21:43:40Z cjh`_: since we have just tested (car set2), how do we give intersec the 'rest' of set2? (everything except the car) 2014-10-21T21:43:52Z lrs: (cdr set2) 2014-10-21T21:44:06Z cjh`_: yes 2014-10-21T21:44:16Z cjh`_: so we want set2 to shrink, and res to grow. Both of those are now happening. 2014-10-21T21:44:21Z cjh`_: what do you think we need to do with set1? 2014-10-21T21:44:28Z cjh`_: (our first argument to intersec) 2014-10-21T21:44:35Z lrs: cdr set1 ? 2014-10-21T21:45:52Z cjh`_: how would that behave if our set1 was '(2 3) and our set2 was '(1 2 3) ? 2014-10-21T21:46:10Z lrs: Im not sure 2014-10-21T21:46:35Z Guest14756 quit (Quit: leaving) 2014-10-21T21:47:02Z cjh`_: lrs: why are you modifying set1? what are you trying to acheive? 2014-10-21T21:47:05Z Riastradh quit (Ping timeout: 246 seconds) 2014-10-21T21:47:24Z lrs: Im shrinking them :S 2014-10-21T21:47:28Z lrs: I have no idea to be honest 2014-10-21T21:47:45Z lrs: I dont get this 2014-10-21T21:47:49Z cjh`_: so we are growing res and we eventually want to return all of our results 2014-10-21T21:48:05Z cjh`_: we have to know when we are done though, so we need to know when we have nothing left to test 2014-10-21T21:48:06Z lrs: We are growing res because of (cons (car set2) res) ? no were only telling it what to do 2014-10-21T21:48:16Z lrs: well that doe null? do 2014-10-21T21:48:21Z cjh`_: we do this by shrinking set2, when set2 is empty we stop looking. 2014-10-21T21:48:40Z cjh`_: yes, so shrinking set1 is not needed. 2014-10-21T21:49:23Z lrs: So how do we shrink set 2 2014-10-21T21:49:36Z cjh`_: we discussed that above. 2014-10-21T21:52:23Z lrs: cjh`_, (car set2) ? 2014-10-21T21:52:57Z byte48 joined #scheme 2014-10-21T21:53:02Z cjh`_: if set2 was '(1 2 3) and we have just rested (car set2), we want to continue testing the remaining list '(2 3) as they havent been tested yet. 2014-10-21T21:53:07Z cjh`_: s/rested/tested/ 2014-10-21T21:53:52Z lrs: (cdr set2) ? 2014-10-21T21:54:56Z cjh`_: what does (cdr '(1 2 3)) return ? 2014-10-21T21:56:01Z lrs: 23 2014-10-21T21:56:16Z lrs: (cdr(car set2)) 2014-10-21T21:56:17Z lrs: :S 2014-10-21T21:56:34Z cjh`_: would would (cdr (car set2)) do? 2014-10-21T21:56:42Z cjh`_: say if set2 were '(1 2 3) 2014-10-21T21:57:19Z jhao joined #scheme 2014-10-21T21:57:28Z lrs: 2 2014-10-21T21:57:45Z joneshf-laptop joined #scheme 2014-10-21T21:57:46Z lrs: (cdr(cdr 2014-10-21T21:57:47Z lrs: :S 2014-10-21T21:57:53Z lrs: And so on 2014-10-21T21:57:55Z lrs: Ugh. 2014-10-21T21:58:13Z cjh`_: (cdr (car (set2)) would give an error, as (car set2) return 1, then (cdr 1) would complain as 1 is not a pair. 2014-10-21T21:59:16Z lrs scratches head 2014-10-21T22:00:17Z mrowe_away is now known as mrowe 2014-10-21T22:01:51Z cjh`_: lrs: if we have a list (1 2 3) and we have just tested the 1, we want to keep the (2 3), how do we achieve that? 2014-10-21T22:02:34Z jhao quit (Ping timeout: 265 seconds) 2014-10-21T22:02:55Z lrs: cjh`_, (cdr) ? 2014-10-21T22:03:52Z cjh`_: yes. (cdr '(1 2 3)) will give us '(2 3). so that is how we shrink set2, so that is our second argument in our call to intersec 2014-10-21T22:03:57Z cjh`_: lrs: what does the code look like so far? 2014-10-21T22:04:37Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T22:05:37Z cjh`_: and we want to keep set1 as it is, so what is our first arguemtn? 2014-10-21T22:05:55Z lrs: set1? 2014-10-21T22:05:55Z cjh`_: argument* ;; my typing is terrible today. 2014-10-21T22:06:12Z cjh`_: lrs: sure, that keeps set1 as it is. so what is our code now? 2014-10-21T22:06:39Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T22:06:59Z cjh`_: lrs: close, notice that you have (intersec(set1 (cdr set2) (cons (car set2) res)... 2014-10-21T22:07:17Z cjh`_: why do you have a bracket after intersec ? 2014-10-21T22:07:27Z cjh`_: ( intersect (set1 ... will try to call set1 as a function 2014-10-21T22:08:04Z lrs: cjh`_, http://pastebin.com/bmQpZpWp 2014-10-21T22:08:21Z cjh`_: lrs: so the (member?) branch of the cond is looking good 2014-10-21T22:08:35Z cjh`_: lrs: so if we consider our null case, what does it mean when set2 is null ? 2014-10-21T22:08:58Z lrs: It will give set1 2014-10-21T22:09:01Z lrs: But were gonna give it res 2014-10-21T22:09:08Z lrs: or? 2014-10-21T22:09:20Z cjh`_: if set2 is null then it is empty, we have finished, what do we want to return when we are finished? 2014-10-21T22:09:32Z lrs: res? 2014-10-21T22:09:43Z cjh`_: we want to give back results, not the first set. 2014-10-21T22:10:06Z lrs: ((null? set2) res) 2014-10-21T22:10:20Z cjh`_: does that look right to you? 2014-10-21T22:10:38Z lrs: Something more I think 2014-10-21T22:10:39Z lrs: else? 2014-10-21T22:10:58Z lrs: Or do you mean if that is ok? 2014-10-21T22:10:59Z lrs: Hmm 2014-10-21T22:11:13Z cjh`_: lrs: can you explain '((null? set2) res)' in english? 2014-10-21T22:11:30Z lrs: When our loop empties set2 2014-10-21T22:11:33Z lrs: It gives res 2014-10-21T22:11:39Z lrs: Which is the result we want 2014-10-21T22:11:40Z fikusz quit (Ping timeout: 255 seconds) 2014-10-21T22:11:45Z cjh`_: so that seems right? 2014-10-21T22:11:49Z Vutral quit (Ping timeout: 260 seconds) 2014-10-21T22:12:02Z lrs: I think so 2014-10-21T22:12:08Z cjh`_: then update your paste. 2014-10-21T22:12:35Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T22:12:49Z cjh`_: ok, so there is still one missing thing from our cond, what case is it not dealing with? 2014-10-21T22:15:21Z fikusz joined #scheme 2014-10-21T22:16:42Z hiroakip quit (Ping timeout: 255 seconds) 2014-10-21T22:16:42Z lrs: cjh`_, Hmmm 2014-10-21T22:18:03Z lrs: cjh`_, No I cant 2014-10-21T22:18:03Z jcowan joined #scheme 2014-10-21T22:18:05Z lrs: Figure it out 2014-10-21T22:18:26Z cjh`_: so currently we have our cond dealing with 2 cases, what are they? 2014-10-21T22:18:48Z lrs: When its null and when member is true 2014-10-21T22:18:54Z lrs: And when none of these are true 2014-10-21T22:18:56Z lrs: We need an else 2014-10-21T22:19:01Z cjh`_: correct, that is the missing case. 2014-10-21T22:19:22Z cjh`_: what do you think our else case should do? 2014-10-21T22:20:26Z Vutral joined #scheme 2014-10-21T22:21:55Z kongtomorrow quit 2014-10-21T22:21:56Z lrs: cjh`_, Im not sure 2014-10-21T22:22:43Z cjh`_: our else case is similar to our (member? (car set2) set1) case except for one detail 2014-10-21T22:22:49Z jcowan_ joined #scheme 2014-10-21T22:22:55Z cjh`_: what do we do with (car set2) if (member? (car set2) set1) is true? 2014-10-21T22:22:58Z lrs: When its not a member? 2014-10-21T22:23:46Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-10-21T22:24:34Z cjh`_: yes, if (cat set2) is not a member of set1, what do we want to do with (car set2) ? 2014-10-21T22:24:48Z jcowan quit (Ping timeout: 265 seconds) 2014-10-21T22:25:11Z jcowan_ is now known as jcowan 2014-10-21T22:26:23Z pnkfelix quit (Ping timeout: 240 seconds) 2014-10-21T22:27:17Z lrs: cjh`_, Hmm 2014-10-21T22:27:33Z lrs: cjh`_, Throw it away 2014-10-21T22:27:39Z cjh`_: yes 2014-10-21T22:28:03Z cjh`_: if it isnt in set2, then it shouldnt be in our intersec results list. 2014-10-21T22:28:18Z cjh`_: but we still want to do the other things; we still want to keep set1 as it is, and we still want to shrink set2. 2014-10-21T22:29:11Z lrs: (else (intersec ???? 2014-10-21T22:29:26Z lrs: (else (intersec set1 (cdr set2) ???) 2014-10-21T22:29:27Z lrs: :S 2014-10-21T22:29:32Z cjh`_: yes, we still want to call intersec (as we arent yet finished, there may still be items in set2 to go over) 2014-10-21T22:29:56Z cjh`_: lrs: and what do you want to do to res? what should our 3rd argument be? 2014-10-21T22:30:25Z lrs: Im not sure 2014-10-21T22:31:13Z cjh`_: what do we do in our member? true branch ? 2014-10-21T22:32:32Z germ13 quit (Ping timeout: 258 seconds) 2014-10-21T22:32:51Z ijp joined #scheme 2014-10-21T22:33:17Z lrs: (cons (car set2) res) ? 2014-10-21T22:33:29Z cjh`_: and what are we doing there? 2014-10-21T22:33:46Z lrs: Adding it to res 2014-10-21T22:33:58Z cjh`_: yes, so we are keeping it by adding it to res (our list of things we want to keep) 2014-10-21T22:34:12Z cjh`_: but as you said, we want to throw it away, so how can we change that to not keep it? 2014-10-21T22:36:14Z lrs: THats a good question :| 2014-10-21T22:36:27Z lrs: set1? 2014-10-21T22:37:21Z cjh`_: no. 2014-10-21T22:37:28Z turbofail: you want to pass an unchanged version of "res" on to the next iteration... 2014-10-21T22:37:36Z cjh`_: so far we have res which is the things we want to keep, we dont want to change this list. 2014-10-21T22:37:50Z lrs: So ill just write res? 2014-10-21T22:37:56Z turbofail: yeah 2014-10-21T22:38:02Z cjh`_: try it, update your paste. 2014-10-21T22:38:32Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T22:39:39Z cjh`_: lrs: looking pretty good, how would you call that function? 2014-10-21T22:40:02Z lrs: You mean how I test it? 2014-10-21T22:40:10Z theseb joined #scheme 2014-10-21T22:40:21Z cjh`_: yes, how do you test your new intersec function 2014-10-21T22:41:10Z bb010g quit (Quit: Connection closed for inactivity) 2014-10-21T22:42:45Z kongtomorrow joined #scheme 2014-10-21T22:42:56Z lrs: (intersec (make-set '(1 (2 (1)) 3 (1 2))) 2014-10-21T22:42:56Z lrs: (make-set '(((1) 2) 3 4 (2 3)))) 2014-10-21T22:43:06Z lrs: intersec: arity mismatch; 2014-10-21T22:43:06Z lrs: the expected number of arguments does not match the given number 2014-10-21T22:43:06Z lrs: expected: 3 2014-10-21T22:43:06Z lrs: given: 2 2014-10-21T22:43:08Z lrs: ;_; 2014-10-21T22:43:19Z cjh`_: lrs: your intersec takes 3 arguments, you only have it to. 2014-10-21T22:43:38Z cjh`_: sorry, you have only given it two* 2014-10-21T22:43:52Z stepnem quit (Ping timeout: 240 seconds) 2014-10-21T22:44:43Z lrs: cjh`_, is there anyway I can change that 2014-10-21T22:44:59Z lrs: Thats how Im supposed to write it in my assignment 2014-10-21T22:45:12Z lrs: But I guess its a bit ok if I dont 2014-10-21T22:45:34Z cjh`_: that is an easy change 2014-10-21T22:45:44Z lrs: How do I do that? 2014-10-21T22:45:46Z cjh`_: so first, how do we canllour version of intersec? 2014-10-21T22:45:52Z cjh`_: call our version* 2014-10-21T22:45:59Z lrs: (intersec 2014-10-21T22:46:10Z lrs: Do we create a new definiton? 2014-10-21T22:47:45Z cjh`_: we could create a new definition that matches the interface for your assignment, and then internally it can call the intersec you just wrote. 2014-10-21T22:48:49Z cjh`_: lrs: so how would we call our intersec? for our 3rd argument 'res', what should it start as? 2014-10-21T22:49:13Z lrs: so ill rename it intersec? 2014-10-21T22:49:19Z lrs: or intersec2 2014-10-21T22:49:21Z lrs: I started doing 2014-10-21T22:49:28Z lrs: renamed the old intersec to intersec2 2014-10-21T22:49:34Z lrs: then did a new define (intersec set1 set2) 2014-10-21T22:49:38Z lrs: But im not reall sure about that 2014-10-21T22:49:42Z cjh`_: that works 2014-10-21T22:50:02Z lrs: But what more should I write 2014-10-21T22:50:20Z cjh`_: so we need our (intersec set1 set2) to then call (intersec2 set1 set2 ???) 2014-10-21T22:50:33Z cjh`_: what should our 3rd argument 'res' start off as? 2014-10-21T22:50:34Z lrs: Right 2014-10-21T22:50:58Z lrs: start off as? 2014-10-21T22:51:49Z cjh`_: yes, what should we set to res in our call 2014-10-21T22:51:54Z BossKonaSegwaY1 quit (Ping timeout: 245 seconds) 2014-10-21T22:52:17Z lrs: the result 2014-10-21T22:52:18Z lrs: :S 2014-10-21T22:52:32Z cjh`_: before we have started intersec2, what is our result list so far? 2014-10-21T22:52:51Z lrs: (define (intersec set1 set2) ???? (define intersec ... 2014-10-21T22:52:55Z lrs: Is how it looks like right now 2014-10-21T22:53:04Z cjh`_: please update the paste 2014-10-21T22:53:44Z jeremyheiler quit (Ping timeout: 272 seconds) 2014-10-21T22:54:07Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T22:54:44Z cjh`_: good, so then our last line of intersec needs to call intersec2 to do the work 2014-10-21T22:55:27Z cjh`_: when we call intersec2 we have to provide 3 args (intersec2 set1 set2 res), any idea what our res should be here? 2014-10-21T22:55:39Z davexunit quit (Quit: Later) 2014-10-21T22:55:52Z lrs: lambda (res) 2014-10-21T22:55:54Z lrs: :S 2014-10-21T22:55:55Z lrs: I have no idea 2014-10-21T22:55:58Z lrs: Ive never done this before 2014-10-21T22:56:08Z cjh`_: ok, so before we call our function we dont have a results list yet 2014-10-21T22:56:16Z cjh`_: so our results list when we start is empty 2014-10-21T22:58:04Z jhao joined #scheme 2014-10-21T22:58:19Z davexunit joined #scheme 2014-10-21T22:58:19Z pjb: lrs: if you only know what you've done before, how do you know anything at all? 2014-10-21T22:58:43Z lrs: pjb, This is the first day in the rest of your life 2014-10-21T22:59:24Z lrs: cjh`_, How do I create it 2014-10-21T23:00:55Z cjh`_: lrs: make an empty set ? 2014-10-21T23:01:25Z lrs scratches head 2014-10-21T23:01:53Z cjh`_: above you used the function make-set, do you have a way of making empty lists or sets? 2014-10-21T23:02:58Z jhao quit (Ping timeout: 255 seconds) 2014-10-21T23:03:31Z lrs: (make-set '()) 2014-10-21T23:03:49Z lrs: Alright, so thats the only thing it will start with 2014-10-21T23:07:08Z cjh`_: try that? 2014-10-21T23:07:13Z lrs: Already did 2014-10-21T23:07:14Z lrs: :P 2014-10-21T23:07:35Z BossKonaSegwaY joined #scheme 2014-10-21T23:07:50Z cjh`_: and how is it looking? 2014-10-21T23:09:24Z lrs: cjh`_, http://pastebin.com/bmQpZpWp 2014-10-21T23:10:36Z cjh`_: ohh swedish. 2014-10-21T23:11:07Z cjh`_: lrs: have you tested it? 2014-10-21T23:11:43Z lrs: Yes it says 2014-10-21T23:11:48Z lrs: begin (possibly implicit): 2014-10-21T23:12:09Z lrs: (error) 2014-10-21T23:12:32Z cjh`_: lrs: your intersec function is not calling intersec2 2014-10-21T23:12:45Z tcsc_ joined #scheme 2014-10-21T23:13:03Z cjh`_: and that (make-set '()) is not being used 2014-10-21T23:13:55Z theseb quit (Quit: Leaving) 2014-10-21T23:15:07Z lrs: cjh`_, How do i call intersec2 and tell it to use makeset? 2014-10-21T23:17:00Z amgarching quit (Ping timeout: 265 seconds) 2014-10-21T23:17:04Z cjh`_: lrs: the same way you call any function (intersect2 arg1 arg2 arg3) 2014-10-21T23:18:02Z lrs: (intersec(intersec2? 2014-10-21T23:18:23Z cjh`_: we want to call intersec2 as the final statement in intersec 2014-10-21T23:19:20Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T23:19:21Z lrs: Updated 2014-10-21T23:19:39Z cjh`_: lrs: so that is currently returning the function intersec2, we want to call it 2014-10-21T23:20:41Z lrs scratches head 2014-10-21T23:21:05Z cjh`_: you are not yet calling intersec2 2014-10-21T23:21:14Z zacts- quit (Quit: Bye) 2014-10-21T23:21:20Z cjh`_: currently you define intersec2, and then you return it, you need to call it instead of returning it. 2014-10-21T23:22:54Z lrs: (intersec2= 2014-10-21T23:22:58Z lrs: ) 2014-10-21T23:22:59Z lrs: :S 2014-10-21T23:24:22Z bb010g joined #scheme 2014-10-21T23:29:20Z lrs: (intersec2 set1 set2) 2014-10-21T23:29:21Z lrs: ? 2014-10-21T23:29:21Z lrs: :S 2014-10-21T23:31:04Z lrs: (intersec2 set1 set2) 2014-10-21T23:31:04Z lrs: ? 2014-10-21T23:37:02Z ijp quit (Quit: This ijp has ended peacefully) 2014-10-21T23:37:02Z iterrogo quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-21T23:40:29Z Vutral quit (Ping timeout: 260 seconds) 2014-10-21T23:41:58Z Vutral joined #scheme 2014-10-21T23:42:50Z lrs: cjh`_, http://pastebin.com/bmQpZpWp 2014-10-21T23:46:25Z Nizumzen joined #scheme 2014-10-21T23:46:28Z cjh`_: had to take a phone call. 2014-10-21T23:46:37Z cjh`_: lrs: intersec2 takes 3 arguments, you are still missing the 3rd argument. 2014-10-21T23:47:09Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T23:47:09Z lrs: ? 2014-10-21T23:48:06Z cjh`_: lrs: what happens when you run that? 2014-10-21T23:49:09Z lrs: itnersec : arity mismatch 2014-10-21T23:49:13Z lrs: expected 2 given 3 2014-10-21T23:51:48Z offby1 quit (Quit: time to rebuild emacs, ah guess) 2014-10-21T23:52:02Z cjh`_: really? is that running the code at http://pastebin.com/bmQpZpWp ? 2014-10-21T23:52:23Z lrs: (intersec (make-set '(1 (2 (1)) 3 (1 2))) 2014-10-21T23:52:23Z lrs: (make-set '(((1) 2) 3 4 (2 3))) '()) 2014-10-21T23:52:25Z lrs: Is the input 2014-10-21T23:52:30Z lrs: Woops 2014-10-21T23:52:39Z offby1__ joined #scheme 2014-10-21T23:52:46Z offby1__ is now known as offby1 2014-10-21T23:52:51Z lrs: res undefined 2014-10-21T23:52:51Z lrs: :S 2014-10-21T23:52:57Z offby1 quit (Changing host) 2014-10-21T23:52:57Z offby1 joined #scheme 2014-10-21T23:53:43Z lrs: Ok fuck 2014-10-21T23:53:46Z lrs: Something is worng 2014-10-21T23:54:35Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T23:54:43Z lrs: Probably missing a parenthesis 2014-10-21T23:57:01Z lrs: res undefined when its like that 2014-10-21T23:57:02Z lrs: Hmm 2014-10-21T23:57:12Z cjh`_: you are passing the empty list into intersec, but the outer intersec only takes 2 arguments 2014-10-21T23:58:06Z lrs: cjh`_, Check the updated 2014-10-21T23:58:36Z cjh`_: lrs: include your test in the paste. 2014-10-21T23:58:59Z lrs: http://pastebin.com/bmQpZpWp 2014-10-21T23:59:04Z cjh`_: lrs: and yes, the rest is undefined in the final argument to intersec2, that was the error I expected you to get (not arity missmatch) 2014-10-21T23:59:12Z jhao joined #scheme 2014-10-21T23:59:30Z cjh`_: the arity missmatch was probably due to the '() in your above intersec call. 2014-10-21T23:59:54Z cjh`_: lrs: so in the paste you dont have res defined in the call to intersec2, and you arent yet using the empty set