2014-10-12T00:00:52Z bjorkintosh joined #scheme 2014-10-12T00:19:23Z araujo joined #scheme 2014-10-12T00:23:36Z jeapostrophe joined #scheme 2014-10-12T00:23:37Z jeapostrophe quit (Changing host) 2014-10-12T00:23:37Z jeapostrophe joined #scheme 2014-10-12T00:29:37Z c107 joined #scheme 2014-10-12T00:30:30Z Vutral quit (Excess Flood) 2014-10-12T00:37:33Z Vutral joined #scheme 2014-10-12T00:37:41Z Vutral quit (Excess Flood) 2014-10-12T00:39:15Z jhao joined #scheme 2014-10-12T00:40:00Z jhao quit (Remote host closed the connection) 2014-10-12T00:40:41Z jhao joined #scheme 2014-10-12T00:41:14Z Vutral joined #scheme 2014-10-12T00:43:17Z jhao quit (Remote host closed the connection) 2014-10-12T00:46:28Z jhao joined #scheme 2014-10-12T00:48:21Z lrs quit (Ping timeout: 255 seconds) 2014-10-12T00:49:48Z Vutral quit (Excess Flood) 2014-10-12T00:55:59Z Vutral joined #scheme 2014-10-12T01:00:22Z Gyps quit (Quit: Gyps) 2014-10-12T01:07:38Z bokr quit (Quit: Leaving.) 2014-10-12T01:17:12Z serhart joined #scheme 2014-10-12T01:18:14Z Vutral quit (Excess Flood) 2014-10-12T01:24:10Z Vutral joined #scheme 2014-10-12T01:25:37Z pjb: zacts: sounds logical. lists should be stored as lists. ;-) 2014-10-12T01:31:17Z Vutral_ joined #scheme 2014-10-12T01:32:01Z tobik quit (Ping timeout: 258 seconds) 2014-10-12T01:32:44Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-10-12T01:32:45Z tobik joined #scheme 2014-10-12T01:34:06Z zacts: =) 2014-10-12T01:37:19Z leo2007 joined #scheme 2014-10-12T01:44:27Z Gyps joined #scheme 2014-10-12T01:49:34Z Gyps quit (Quit: Gyps) 2014-10-12T01:53:22Z stepnem quit (Ping timeout: 250 seconds) 2014-10-12T01:57:12Z effy quit (Ping timeout: 260 seconds) 2014-10-12T01:57:26Z effy joined #scheme 2014-10-12T01:58:41Z daviid quit (Ping timeout: 260 seconds) 2014-10-12T02:00:51Z Gyps joined #scheme 2014-10-12T02:04:50Z acarrico quit (Ping timeout: 255 seconds) 2014-10-12T02:20:19Z Saeren quit (Read error: Connection reset by peer) 2014-10-12T02:23:08Z BossKonaSegwaY quit (Ping timeout: 244 seconds) 2014-10-12T02:25:57Z Saeren joined #scheme 2014-10-12T02:29:15Z BossKonaSegwaY joined #scheme 2014-10-12T02:30:19Z Rodya_ joined #scheme 2014-10-12T02:34:34Z karswell` joined #scheme 2014-10-12T02:38:22Z jeapostrophe quit (Ping timeout: 240 seconds) 2014-10-12T02:48:31Z jusss joined #scheme 2014-10-12T02:48:52Z bjz quit (Ping timeout: 255 seconds) 2014-10-12T03:04:48Z amgarching joined #scheme 2014-10-12T03:08:37Z amgarchIn9 quit (Ping timeout: 258 seconds) 2014-10-12T03:14:48Z jusss quit (Remote host closed the connection) 2014-10-12T03:15:22Z davexunit quit (Quit: Later) 2014-10-12T03:59:21Z jusss joined #scheme 2014-10-12T04:06:09Z b4283 joined #scheme 2014-10-12T04:06:31Z bjz joined #scheme 2014-10-12T04:06:56Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-10-12T04:19:50Z BossKonaSegwaY joined #scheme 2014-10-12T04:30:40Z azathoth99 joined #scheme 2014-10-12T04:37:20Z Rodya_ quit (Ping timeout: 272 seconds) 2014-10-12T04:41:45Z vinleod joined #scheme 2014-10-12T04:43:07Z zacts ignores gavino 2014-10-12T04:47:24Z azathoth99: thinks zacts is a tool 2014-10-12T04:47:28Z azathoth99: :) 2014-10-12T04:54:26Z b4283 quit (Ping timeout: 272 seconds) 2014-10-12T05:01:21Z b4283 joined #scheme 2014-10-12T05:14:44Z emma quit (Ping timeout: 258 seconds) 2014-10-12T05:15:25Z emma joined #scheme 2014-10-12T05:27:50Z jusss quit (Read error: Connection reset by peer) 2014-10-12T05:30:30Z azathoth99 quit (Remote host closed the connection) 2014-10-12T05:41:11Z mrowe_away is now known as mrowe 2014-10-12T05:42:27Z nehaljwani joined #scheme 2014-10-12T05:42:37Z nehaljwani: How to remove a list member at index i from a list? 2014-10-12T05:42:45Z nehaljwani: s/remove/replace 2014-10-12T05:50:54Z mrowe is now known as mrowe_away 2014-10-12T06:08:22Z ozzloy quit (Remote host closed the connection) 2014-10-12T06:11:57Z drdanmaku quit (Quit: Connection closed for inactivity) 2014-10-12T06:40:52Z ee_cc joined #scheme 2014-10-12T07:15:11Z pjb: nehaljwani: have you searched in the SRFIs? 2014-10-12T07:15:22Z nehaljwani: pjb, what is SRFI? 2014-10-12T07:15:59Z nehaljwani: Oh Scheme Requests for Implementation 2014-10-12T07:16:08Z nehaljwani: How do I search that? 2014-10-12T07:18:21Z pjb: http://srfi.schemers.org/final-srfis.html 2014-10-12T07:18:39Z pjb: But there doesn't seem to be what you want in srfi1. 2014-10-12T07:20:58Z Kryo quit (Ping timeout: 250 seconds) 2014-10-12T07:21:54Z Kryo joined #scheme 2014-10-12T07:24:53Z pjb: (define (remove-nth! n list) (cond ((null? list) list) ((= 0 n) (cdr list)) (t (let ((cell (nthcdr (- n 1) list))) (if cell (set-cdr! cell (cdr cell))) list)))) 2014-10-12T07:25:40Z pjb: (define (nthcdr n list) (cond ((< n 0) #f) ((= n 0) list) ((null? list) #f) (else (nthcdr (- n 1) (cdr list))))) 2014-10-12T07:25:55Z pjb: s/(t /(else / in remove-nth! 2014-10-12T07:31:04Z c107 quit (Remote host closed the connection) 2014-10-12T07:39:22Z bjz quit (Ping timeout: 240 seconds) 2014-10-12T07:44:52Z work_op quit (Ping timeout: 245 seconds) 2014-10-12T07:53:13Z fikusz quit (Quit: Leaving) 2014-10-12T07:55:12Z fikusz joined #scheme 2014-10-12T07:55:21Z BossKonaSegwaY quit (Ping timeout: 244 seconds) 2014-10-12T07:58:52Z mutley89 quit (Ping timeout: 240 seconds) 2014-10-12T08:00:58Z Gyps quit (Quit: Gyps) 2014-10-12T08:08:46Z BossKonaSegwaY joined #scheme 2014-10-12T08:20:01Z bjz joined #scheme 2014-10-12T08:35:12Z oleo is now known as Guest54355 2014-10-12T08:36:48Z oleo__ joined #scheme 2014-10-12T08:38:06Z Guest54355 quit (Ping timeout: 246 seconds) 2014-10-12T08:44:07Z vinleod quit (Quit: Computer has gone to sleep.) 2014-10-12T08:45:21Z kongtomorrow joined #scheme 2014-10-12T08:45:58Z nisstyre quit (Quit: WeeChat 1.0.1) 2014-10-12T08:48:53Z Adamm1 joined #scheme 2014-10-12T09:00:05Z Vutral quit (Ping timeout: 260 seconds) 2014-10-12T09:02:57Z wingo joined #scheme 2014-10-12T09:05:20Z Vutral joined #scheme 2014-10-12T09:07:50Z ilammy joined #scheme 2014-10-12T09:19:44Z kongtomorrow quit 2014-10-12T09:19:49Z b4284 joined #scheme 2014-10-12T09:21:39Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-12T09:25:15Z kongtomorrow joined #scheme 2014-10-12T09:45:03Z ee_cc quit (Quit: ee_cc) 2014-10-12T09:56:54Z kongtomorrow quit 2014-10-12T10:13:21Z Vutral quit (Ping timeout: 260 seconds) 2014-10-12T10:18:37Z Vutral joined #scheme 2014-10-12T10:19:46Z lrs joined #scheme 2014-10-12T10:20:12Z stepnem joined #scheme 2014-10-12T10:29:42Z gravicappa joined #scheme 2014-10-12T10:34:05Z hiroakip joined #scheme 2014-10-12T10:37:41Z mrowe_away is now known as mrowe 2014-10-12T10:46:35Z Vutral_ quit (Ping timeout: 272 seconds) 2014-10-12T10:48:24Z Adamm1 quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2014-10-12T10:48:30Z Vutral_ joined #scheme 2014-10-12T10:52:47Z vanila joined #scheme 2014-10-12T10:58:21Z jeapostrophe joined #scheme 2014-10-12T11:07:15Z mrowe is now known as mrowe_away 2014-10-12T11:09:10Z nehaljwani: what is wrong in this:http://fpaste.org/141237/12135141/ 2014-10-12T11:10:29Z vanila: nehaljwani, it should be (z) rather han z 2014-10-12T11:10:40Z wingo quit (Ping timeout: 260 seconds) 2014-10-12T11:10:45Z nehaljwani: aah 2014-10-12T11:24:40Z lrs quit (Ping timeout: 260 seconds) 2014-10-12T11:37:06Z Nizumzen joined #scheme 2014-10-12T11:45:33Z lrs joined #scheme 2014-10-12T11:49:24Z hiroakip quit (Ping timeout: 260 seconds) 2014-10-12T11:58:26Z jusss` joined #scheme 2014-10-12T11:58:42Z bjz quit (Ping timeout: 244 seconds) 2014-10-12T12:25:27Z jusss` is now known as jusss 2014-10-12T12:25:37Z bokr joined #scheme 2014-10-12T12:25:42Z jusss quit (Changing host) 2014-10-12T12:25:42Z jusss joined #scheme 2014-10-12T12:27:13Z bokr quit (Client Quit) 2014-10-12T12:27:28Z jusss quit (Read error: Connection reset by peer) 2014-10-12T12:27:48Z jusss joined #scheme 2014-10-12T12:32:18Z vanila quit (Quit: Leaving) 2014-10-12T12:33:23Z lrs: Ok so 2014-10-12T12:33:24Z lrs: http://pastebin.com/vetD4LgN 2014-10-12T12:33:37Z lrs: Here is a code snippet that removes duplicates 2014-10-12T12:33:44Z lrs: But if I write 2014-10-12T12:33:55Z lrs: (define myset (remove-duplicates '(a (a b b (c b) 3) 5 5 (e s) (s e s)))) 2014-10-12T12:34:03Z lrs: I doesnt remove ( a b b) 2014-10-12T12:34:10Z lrs: Just the ones in the first parenthesis 2014-10-12T12:34:52Z jeapostrophe quit (Ping timeout: 244 seconds) 2014-10-12T12:36:07Z MouldyOldBones quit (Quit: MouldyOldBones) 2014-10-12T12:41:21Z bjz joined #scheme 2014-10-12T12:59:38Z lrs: Damnit 2014-10-12T13:03:14Z ilammy: But should it do that? 2014-10-12T13:03:42Z ilammy: When it's (a (a b b)) it is a set of a symbol and a list. 2014-10-12T13:04:26Z ilammy: Oh, well, you can treat the inner list as a set too. 2014-10-12T13:04:48Z ilammy: Then just recurse on lists if you see any before adding them to the set. 2014-10-12T13:06:13Z ilammy: Also, make-set appears to not check for uniqueness properly. It slips though things like (1 2 1) 2014-10-12T13:13:15Z lrs: ilammy, Basically 2014-10-12T13:13:21Z lrs: I want it do apply it on the subsets too 2014-10-12T13:15:40Z ilammy: Then write 'unique' procedure that leaves only unique elements from the list (O(n^2) variant will do), and the just (map unique (unique wannabe-set)) 2014-10-12T13:17:41Z lrs: ilammy, I wrote myset o that it checks if car and cadr lst is equal 2014-10-12T13:17:51Z lrs: Basically I just need to apply that function on the subset 2014-10-12T13:17:56Z lrs: I think (?) 2014-10-12T13:18:26Z ilammy: I pointed out that it's not going to work for lists like (1 2 1) 2014-10-12T13:18:49Z ilammy: You need to make it check that nothing from cdr of the list is equal to it's car 2014-10-12T13:20:27Z lrs: Hm 2014-10-12T13:20:34Z lrs: Recursive 2014-10-12T13:20:37Z lrs: Function 2014-10-12T13:20:38Z lrs: Right 2014-10-12T13:21:34Z ilammy: Well, yeah, a loop. A handmade one, or via every/any. 2014-10-12T13:23:56Z lrs: ilammy, Im so bad at recursive funtion 2014-10-12T13:23:59Z lrs: Could you help me 2014-10-12T13:31:17Z ilammy: then just get btter at them :) 2014-10-12T13:31:34Z lrs: ilammy, I dont know what I am gonna do: 2014-10-12T13:31:37Z ilammy: suppose ou have a procedure (member e l) that checks whether e is a member of l 2014-10-12T13:31:55Z lrs: I suppose i ma suppose to d something here 2014-10-12T13:31:56Z lrs: (cons (car lst)(make-set (cdr lst)))))) 2014-10-12T13:32:05Z lrs: Write something here (make-set (cdr lst)))))) 2014-10-12T13:32:23Z ilammy: how would you write a procedure that makes a list of unique elements? 2014-10-12T13:32:58Z ilammy: You need to do it as a recursion, so that means you must make it in small steps 2014-10-12T13:33:08Z lrs: I would make it so that it first checks the pair of 2 elements 2014-10-12T13:33:13Z ilammy: And break the whole problem into these steps 2014-10-12T13:33:27Z lrs: Or maybe ssort them 2014-10-12T13:33:33Z lrs: I would sort them first 2014-10-12T13:33:48Z lrs: And the n Iwould do one where it checks if the car and cdr is the ame 2014-10-12T13:33:57Z ilammy: That's if you can order them. 2014-10-12T13:33:58Z lrs: And if they are I would keep the car 2014-10-12T13:34:26Z ilammy: And not everything can be ordered 2014-10-12T13:34:58Z lrs: the subsets cant be ordered? 2014-10-12T13:36:27Z ilammy: That's one of the things. 2014-10-12T13:37:04Z ilammy: Another one could be just any other incomparable stuff like complex numbers or procedures. 2014-10-12T13:37:31Z lrs: Hm? 2014-10-12T13:37:50Z lrs: oh right 2014-10-12T13:42:07Z taylanub quit (Disconnected by services) 2014-10-12T13:42:31Z lrs: ilammy, So you are suggesting i revaluete my whole function 2014-10-12T13:42:46Z taylanub joined #scheme 2014-10-12T13:44:20Z ilammy: not the whole 2014-10-12T13:44:43Z ilammy: actually, you need to change only the way you check for uniqueness 2014-10-12T13:50:17Z lrs: Another one could be just any other incomparable s 2014-10-12T13:50:19Z lrs: Gah 2014-10-12T13:50:25Z lrs: (if (equal? (car lst) (cadr lst)) 2014-10-12T13:50:25Z lrs: (make-set (cdr lst)) 2014-10-12T13:50:29Z lrs: Do you mean that? 2014-10-12T13:50:56Z ilammy: > (equal? (car lst) (cadr lst)) 2014-10-12T13:50:58Z ilammy: this 2014-10-12T13:52:35Z acarrico joined #scheme 2014-10-12T13:54:35Z lrs: ilammy, I need to add an recursive thing there? 2014-10-12T13:55:09Z ilammy: no, just a proper test with member 2014-10-12T13:55:23Z ilammy: this will give you the uniqe procedure 2014-10-12T13:55:49Z ilammy: then you can write make-set with it 2014-10-12T13:56:06Z lrs: I dunno if member is defined in racket 2014-10-12T13:57:24Z lrs: I got a funtion defined as member? 2014-10-12T13:58:07Z lrs: http://pastebin.com/NpauHXJ4 2014-10-12T14:07:44Z lrs: ilammy, I tried using that member? instead of equal? but it didnt work 2014-10-12T14:09:35Z ilammy: apply it to cdr, not cadr 2014-10-12T14:11:09Z lrs: (define myset 2014-10-12T14:11:09Z lrs: (make-set '(a a (a b b (c b) 3) 5 5 (e s) (s e s)))) 2014-10-12T14:11:15Z lrs: {a {a b b {c b} 3} 5 {e s} {s e s}} 2014-10-12T14:11:16Z lrs: ;_; 2014-10-12T14:12:56Z _tca: little schemer covers all this 2014-10-12T14:13:48Z _tca: that is correct lrs 2014-10-12T14:13:49Z lrs: I tried the little schemer example and it doesnt work gor me 2014-10-12T14:14:00Z _tca: yes it did work for you 2014-10-12T14:14:01Z lrs: It doesnt take up subsets 2014-10-12T14:14:10Z _tca: yes of course it doesn't 2014-10-12T14:14:23Z _tca: you have to make another based on it to do that 2014-10-12T14:15:14Z lrs: Another what? 2014-10-12T14:15:24Z _tca: procedure 2014-10-12T14:15:25Z lrs: What would that be called? 2014-10-12T14:15:34Z emma quit (Ping timeout: 255 seconds) 2014-10-12T14:15:37Z lrs: And how would i connect it 2014-10-12T14:15:45Z kongtomorrow joined #scheme 2014-10-12T14:15:53Z kongtomorrow quit (Client Quit) 2014-10-12T14:15:58Z _tca: remove-duplicates-rec 2014-10-12T14:17:20Z _tca: you don't connect it you just base it off it 2014-10-12T14:18:06Z _tca: right now all objects are treated as atomic, you can make a case to split that into lists and all other objects 2014-10-12T14:18:25Z _tca: and when it's a list then recur on it 2014-10-12T14:18:45Z lrs: Right 2014-10-12T14:19:15Z _tca: this is also trickier because two sets can be different before expand but the same after 2014-10-12T14:19:35Z _tca: so the member test wot catch it 2014-10-12T14:19:50Z lrs: Hm 2014-10-12T14:20:02Z _tca: before shrunk* 2014-10-12T14:20:46Z lrs: (define (remove-duplicates lst) 2014-10-12T14:20:46Z lrs: (if (or (empty? lst) (empty? (cdr lst))) 2014-10-12T14:20:46Z lrs: lst 2014-10-12T14:24:17Z lrs: God damnit 2014-10-12T14:26:18Z _tca: lrs start by copy/pasting makeset then add the case to that 2014-10-12T14:29:00Z nehaljwani quit (Remote host closed the connection) 2014-10-12T14:29:22Z nehaljwani joined #scheme 2014-10-12T14:30:28Z emma joined #scheme 2014-10-12T14:34:54Z hiyosi quit (Quit: WeeChat 1.0) 2014-10-12T14:35:12Z hiyosi joined #scheme 2014-10-12T14:53:59Z lrs: _tca, http://pastebin.com/7ipypyAk 2014-10-12T14:53:59Z lrs: ? 2014-10-12T14:54:00Z lrs: :S 2014-10-12T14:54:18Z lrs: I mean 2014-10-12T14:54:46Z lrs: http://pastebin.com/7ipypyAk 2014-10-12T14:54:48Z lrs: There 2014-10-12T14:54:49Z lrs: :S 2014-10-12T14:55:22Z _tca: thats the same as in the little schemer it just uses if instead of cond 2014-10-12T14:55:47Z lrs: The "Write subset?" in little schemer 2014-10-12T14:56:15Z lrs: Or "Try to write makeser using member?" 2014-10-12T14:56:53Z _tca: makeset using member? 2014-10-12T15:01:05Z lrs: Doesnt work 2014-10-12T15:01:16Z _tca: yes because you havent modified it yet 2014-10-12T15:01:18Z lrs: _tca : Member isnt defined so I need to create my own member? 2014-10-12T15:01:25Z _tca: ight now all objects are treated as atomic, you can make a case to split that into lists and all other objects 2014-10-12T15:01:57Z _tca: you can if you want or you can use the built-in one (define member? member) 2014-10-12T15:02:16Z lrs: There is no built in one for me 2014-10-12T15:02:30Z _tca: yes because you didn't read my whole sentence 2014-10-12T15:04:14Z lrs: _tca, I dont get it? 2014-10-12T15:04:21Z lrs: should I just write that which you wrote? 2014-10-12T15:05:09Z _tca: it really would do you good to just go throught he book from the start 2014-10-12T15:05:32Z lrs: I will 2014-10-12T15:05:39Z lrs: I just need help with this stuff 2014-10-12T15:05:40Z lrs: :S 2014-10-12T15:07:21Z _tca: thrres a difference between help and doing stuff for you 2014-10-12T15:07:26Z Perkol joined #scheme 2014-10-12T15:07:58Z lrs: Well 2014-10-12T15:08:24Z lrs: The assignment im doing 2014-10-12T15:08:33Z lrs: I am supposed to learn how to use selectors and constructor 2014-10-12T15:08:34Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-10-12T15:09:28Z lrs: And I dont really understand what you are suggesting I should do 2014-10-12T15:09:44Z lrs: The makeset that is in little schemer doesnt work unless i define member? 2014-10-12T15:10:03Z lrs: I have tried different languages so the definition they use in book, Im not sure what it does 2014-10-12T15:10:15Z lrs: So I found a defintion of member that I use now 2014-10-12T15:10:26Z lrs: Which is http://pastebin.com/NpauHXJ4 2014-10-12T15:10:48Z lrs: And if I create the same defintion as makeset, but with member in it 2014-10-12T15:10:50Z lrs: It doesnt work 2014-10-12T15:10:52Z lrs: Sooooo 2014-10-12T15:11:15Z lrs: ;_; 2014-10-12T15:11:37Z lrs: I only have this to go after http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-16.html#%_sec_2.3.3 2014-10-12T15:11:42Z lrs: And it doesnt say anything that helps me 2014-10-12T15:16:18Z kuribas joined #scheme 2014-10-12T15:18:19Z lrs: And the makeset define in little schemer doesnt do anything on the subsets 2014-10-12T15:18:51Z lrs: So Im gonna create a new condition where the element is a set 2014-10-12T15:30:45Z b4283 quit (Remote host closed the connection) 2014-10-12T15:32:34Z b4283 joined #scheme 2014-10-12T15:37:53Z jusss quit (Remote host closed the connection) 2014-10-12T15:38:48Z emma quit (Ping timeout: 244 seconds) 2014-10-12T15:38:48Z b4283 quit (Ping timeout: 246 seconds) 2014-10-12T15:38:57Z drdanmaku joined #scheme 2014-10-12T15:44:33Z nehaljwani quit (Remote host closed the connection) 2014-10-12T15:44:52Z leif quit (Ping timeout: 245 seconds) 2014-10-12T15:45:27Z emma joined #scheme 2014-10-12T15:45:39Z leif joined #scheme 2014-10-12T15:45:56Z b4283 joined #scheme 2014-10-12T15:46:03Z leif is now known as Guest32330 2014-10-12T15:48:35Z hiroakip joined #scheme 2014-10-12T15:49:44Z b4283 quit (Excess Flood) 2014-10-12T15:50:19Z b4283 joined #scheme 2014-10-12T16:12:00Z b4285 joined #scheme 2014-10-12T16:12:17Z hiroakip quit (Ping timeout: 272 seconds) 2014-10-12T16:13:06Z b4283 quit (Ping timeout: 250 seconds) 2014-10-12T16:14:45Z Riastradh joined #scheme 2014-10-12T16:15:10Z lrs: Is there anything other than (quote () 2014-10-12T16:15:12Z lrs: That i can use 2014-10-12T16:18:02Z b4285 quit (Ping timeout: 255 seconds) 2014-10-12T16:18:19Z b4283 joined #scheme 2014-10-12T16:19:51Z civodul joined #scheme 2014-10-12T16:21:09Z Guest32330 quit (Ping timeout: 272 seconds) 2014-10-12T16:22:22Z daviid joined #scheme 2014-10-12T16:26:58Z b4283 quit (Ping timeout: 255 seconds) 2014-10-12T16:28:13Z leif__ joined #scheme 2014-10-12T16:30:14Z b4283 joined #scheme 2014-10-12T16:30:38Z hiroakip joined #scheme 2014-10-12T16:31:57Z c107 joined #scheme 2014-10-12T16:32:45Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-10-12T16:36:09Z Perkol quit (Quit: Leaving) 2014-10-12T16:36:52Z hiroakip quit (Ping timeout: 260 seconds) 2014-10-12T16:37:44Z b4284 quit (Quit: Konversation terminated!) 2014-10-12T16:42:29Z oldskirt joined #scheme 2014-10-12T16:46:58Z BossKonaSegwaY joined #scheme 2014-10-12T16:51:23Z b4283 quit (Ping timeout: 272 seconds) 2014-10-12T17:09:52Z jhao quit (Ping timeout: 250 seconds) 2014-10-12T17:13:51Z kazimir42 joined #scheme 2014-10-12T17:22:47Z Gyps joined #scheme 2014-10-12T17:35:13Z jhao joined #scheme 2014-10-12T17:39:11Z jeapostrophe joined #scheme 2014-10-12T17:39:11Z jeapostrophe quit (Changing host) 2014-10-12T17:39:11Z jeapostrophe joined #scheme 2014-10-12T18:02:55Z atomx joined #scheme 2014-10-12T18:03:18Z atomx quit (Remote host closed the connection) 2014-10-12T18:03:37Z atomx joined #scheme 2014-10-12T18:04:30Z zacts: ra 2014-10-12T18:06:03Z leo2007 quit (Ping timeout: 255 seconds) 2014-10-12T18:11:14Z vanila joined #scheme 2014-10-12T18:14:04Z atomx quit (Ping timeout: 255 seconds) 2014-10-12T18:31:33Z atomx joined #scheme 2014-10-12T18:39:08Z lrs: Quick question 2014-10-12T18:39:10Z lrs: I have 2014-10-12T18:39:12Z lrs: (intervallhalvering (lambda (x) 2014-10-12T18:39:13Z lrs: (+ (* x x x) (* a x x) (* b x) c))1 2 3) 2014-10-12T18:39:35Z lrs: Which applies that function to x^3+ax^2+bx+c 2014-10-12T18:39:52Z lrs: But when I want to create a function called cubic 2014-10-12T18:39:55Z lrs: That takes a b c 2014-10-12T18:39:58Z lrs: And want to write 2014-10-12T18:40:09Z lrs: (intervallhalvering (cubic 1 2 3)) or similar 2014-10-12T18:40:11Z lrs: How do I do? 2014-10-12T18:40:53Z lrs: (define (cubic x) 2014-10-12T18:40:55Z lrs: (lambda ( a b c) 2014-10-12T18:40:55Z lrs: (+ (* x x x) (* a x x) (* b x) c))) 2014-10-12T18:40:55Z lrs: :S 2014-10-12T18:40:59Z lrs: OR just define cubic 2014-10-12T18:40:59Z vanila: (define (cubic a b c) 2014-10-12T18:41:01Z lrs: And then lambda a b c 2014-10-12T18:41:02Z vanila: (lambda (x) 2014-10-12T18:41:11Z vanila: (+ (* x x x) (* a x x) (* b x) c))) 2014-10-12T18:41:23Z lrs: (define (cubic a b c) 2014-10-12T18:41:23Z lrs: (lambda (x) 2014-10-12T18:41:23Z lrs: (+ (* x x x) (* a x x) (* b x) c))) 2014-10-12T18:41:47Z lrs: (intervallhalvering (cubic 1 2 3)) 2014-10-12T18:41:49Z lrs: Doesnt work 2014-10-12T18:42:10Z vanila: it should work 2014-10-12T18:42:55Z lrs: expected: 4 2014-10-12T18:42:56Z lrs: given: 1 2014-10-12T18:42:56Z lrs: arguments...: 2014-10-12T18:42:56Z lrs: # 2014-10-12T18:47:40Z lrs: vanila, Any idea why it doesnt? This is how the function I apply looks like 2014-10-12T18:48:28Z lrs: http://pastebin.com/Yj6PMSfg 2014-10-12T18:49:17Z vanila: I dont know 2014-10-12T18:55:28Z atomx quit (Ping timeout: 260 seconds) 2014-10-12T18:57:15Z kazimir42 quit (Ping timeout: 264 seconds) 2014-10-12T18:59:32Z leo2007 joined #scheme 2014-10-12T19:11:51Z civodul quit (Remote host closed the connection) 2014-10-12T19:18:21Z mlilenium_ joined #scheme 2014-10-12T19:18:28Z mlilenium_ left #scheme 2014-10-12T19:22:13Z hiroakip joined #scheme 2014-10-12T19:28:27Z hiroakip quit (Ping timeout: 272 seconds) 2014-10-12T19:34:17Z kuribas quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-12T19:45:29Z Gyps quit (Ping timeout: 260 seconds) 2014-10-12T19:45:47Z amgarching quit (Read error: Connection reset by peer) 2014-10-12T19:45:49Z alexei_ joined #scheme 2014-10-12T19:58:04Z alexei___ joined #scheme 2014-10-12T19:59:14Z Gyps joined #scheme 2014-10-12T19:59:28Z alexei_ quit (Ping timeout: 258 seconds) 2014-10-12T20:00:43Z niklasl quit (*.net *.split) 2014-10-12T20:00:43Z dmiles_afk quit (*.net *.split) 2014-10-12T20:00:43Z ByronJohnson quit (*.net *.split) 2014-10-12T20:00:44Z renopt quit (*.net *.split) 2014-10-12T20:00:44Z offby1 quit (*.net *.split) 2014-10-12T20:00:44Z diginet quit (*.net *.split) 2014-10-12T20:00:44Z ineiros quit (*.net *.split) 2014-10-12T20:00:44Z rsf quit (*.net *.split) 2014-10-12T20:00:44Z Riastradh quit (*.net *.split) 2014-10-12T20:00:44Z guampa quit (*.net *.split) 2014-10-12T20:00:57Z ByronJohnson joined #scheme 2014-10-12T20:00:58Z ineiros joined #scheme 2014-10-12T20:01:09Z rsf joined #scheme 2014-10-12T20:01:14Z offby1 joined #scheme 2014-10-12T20:01:18Z niklasl joined #scheme 2014-10-12T20:01:35Z diginet joined #scheme 2014-10-12T20:01:42Z dmiles_afk joined #scheme 2014-10-12T20:01:46Z offby1 quit (Changing host) 2014-10-12T20:01:46Z offby1 joined #scheme 2014-10-12T20:05:50Z renopt joined #scheme 2014-10-12T20:06:08Z Riastradh joined #scheme 2014-10-12T20:06:08Z guampa joined #scheme 2014-10-12T20:06:23Z guampa quit (Max SendQ exceeded) 2014-10-12T20:07:24Z guampa joined #scheme 2014-10-12T20:07:27Z kongtomorrow joined #scheme 2014-10-12T20:09:41Z micro__ is now known as micro 2014-10-12T20:10:11Z micro is now known as Guest1705 2014-10-12T20:11:59Z guampa quit (Changing host) 2014-10-12T20:11:59Z guampa joined #scheme 2014-10-12T20:12:09Z vinleod joined #scheme 2014-10-12T20:12:25Z Guest1705 is now known as micro^ 2014-10-12T20:15:33Z vinleod quit (Client Quit) 2014-10-12T20:24:37Z kongtomorrow quit 2014-10-12T20:25:30Z oleo__ is now known as oleo 2014-10-12T20:29:06Z gravicappa quit (Remote host closed the connection) 2014-10-12T20:31:31Z kongtomorrow joined #scheme 2014-10-12T20:37:49Z wingo joined #scheme 2014-10-12T20:47:05Z wingo quit (Ping timeout: 260 seconds) 2014-10-12T20:53:40Z kongtomorrow quit 2014-10-12T20:55:17Z oleo__ joined #scheme 2014-10-12T20:55:56Z oleo is now known as Guest56907 2014-10-12T20:57:17Z Guest56907 quit (Ping timeout: 272 seconds) 2014-10-12T21:00:22Z aretecode joined #scheme 2014-10-12T21:00:45Z bokr joined #scheme 2014-10-12T21:01:31Z civodul joined #scheme 2014-10-12T21:05:17Z Vutral quit (Ping timeout: 260 seconds) 2014-10-12T21:05:50Z kidd_ joined #scheme 2014-10-12T21:06:00Z aretecode quit (Max SendQ exceeded) 2014-10-12T21:10:32Z oleo__ quit (Quit: Verlassend) 2014-10-12T21:22:04Z oleo joined #scheme 2014-10-12T21:22:19Z aretecode joined #scheme 2014-10-12T21:36:23Z mrowe_away is now known as mrowe 2014-10-12T21:46:19Z vanila quit (Quit: Leaving) 2014-10-12T21:55:36Z Vutral_ quit (Ping timeout: 260 seconds) 2014-10-12T21:58:05Z Vutral_ joined #scheme 2014-10-12T22:09:16Z BossKonaSegwaY quit (Read error: Connection reset by peer) 2014-10-12T22:10:11Z BossKonaSegwaY joined #scheme 2014-10-12T22:10:21Z Vutral joined #scheme 2014-10-12T22:17:47Z jhao quit (Ping timeout: 245 seconds) 2014-10-12T22:22:26Z mrowe is now known as mrowe_away 2014-10-12T22:23:41Z mutley89 joined #scheme 2014-10-12T22:35:40Z ilammy quit (Ping timeout: 246 seconds) 2014-10-12T22:38:51Z mutley89 quit (Read error: Connection reset by peer) 2014-10-12T22:43:55Z bokr quit (Quit: Leaving.) 2014-10-12T22:53:30Z BossKonaSegwaY quit (Ping timeout: 258 seconds) 2014-10-12T22:59:20Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-12T23:00:57Z stepnem quit (Ping timeout: 260 seconds) 2014-10-12T23:02:06Z BossKonaSegwaY joined #scheme 2014-10-12T23:06:19Z BossKonaSegwaY1 joined #scheme 2014-10-12T23:06:22Z BossKonaSegwaY quit (Ping timeout: 240 seconds) 2014-10-12T23:08:39Z peterhil joined #scheme 2014-10-12T23:13:08Z jhao joined #scheme 2014-10-12T23:17:31Z tcsc joined #scheme 2014-10-12T23:20:13Z Rodya_ joined #scheme 2014-10-12T23:22:54Z bjz quit (Ping timeout: 246 seconds) 2014-10-12T23:28:05Z jhao quit (Ping timeout: 260 seconds) 2014-10-12T23:32:50Z mrowe_away is now known as mrowe 2014-10-12T23:35:14Z jhao joined #scheme 2014-10-12T23:37:47Z DGASAU quit (Read error: Connection reset by peer) 2014-10-12T23:38:21Z DGASAU joined #scheme 2014-10-12T23:50:49Z kvda joined #scheme