Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge

Name: Anonymous 2014-07-16 18:35

Write a macro that, given a term of code, transforms all the calls to the function FOO in that term, and only those calls, into calls to function BAR with the same arguments.
Language: Common Lisp or Scheme.

Name: Anonymous 2014-07-16 19:02

sed 's/FOO/BAR/'

Name: not >>3 2014-07-16 21:13

Name: Anonymous 2014-07-16 22:29

Yeah, I left out the ``only'' part. Does lisp require whitespace?
sed 's/\(FOO /\(BAR /'

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List