Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~2K People Reached

5 Posted Topics

Member Avatar for captainhair

I'm not competent enough in scheme to provide much help, but it might be easier to read in the whole file, split it into lines, add the alphabet, and then print it all back to the file. On the other hand. If you put "dir" outside of the recursion, it …

Member Avatar for sepp2k
0
302
Member Avatar for cknapp

So, I figured a fun little waste of time would be to write quicksort in scheme. I have my code below, poorly documented. Basically, it takes the first element as the pivot (for simplicity), and then there's a method which returns a pair which is ( (list of everything smaller …

Member Avatar for cknapp
0
1K
Member Avatar for redZERO

The only other way I know of would be to loop through the array: [code] for(int i=0;i<sourcearr.length;i++){ argarr[i]=sourcearr[i]; }[/code] This is extra code and (a lot) extra computation, but it becomes useful if you're sifting through the data at the same time. (e.g.) [code=java] for(int i=0;i<sourcearr.length;i++){ if(foo) {argarr[i]=sourcearr[i];} //do something …

Member Avatar for Ezzaral
0
119
Member Avatar for cknapp

I'm writing a webapp for a professor. It is basically a replacement for a csh script he wrote, along with a simple interface that will allow for dealing with input and output files. All the csh script does is automate a bunch of perl scripts. Anyway, I chose to do …

Member Avatar for cknapp
0
142
Member Avatar for cknapp

I'm working on an implementation of Conway's Game of Life as a way to learn Scheme, and I'm having trouble with the updater. I keep getting the message "The object () is not applicable" when I try to use the following. I could be missing something simple, and any advice …

Member Avatar for cknapp
0
200

The End.