6 ms·
I wouldn't say it's the opposite. It sounds the opposite from the title, but this actually returns Wikipedia content. The other one fetches a link to a site.
by aledalgrande 7y ago
I wouldn't say it's the opposite. It sounds the opposite from the title, but this actually returns Wikipedia content. The other one fetches a link to a site.
- dang 7y agoI just meant opposite in the most trivial sense: (reverse '("Wikipedia" "over" "DNS")) => ("DNS" "over" "Wikipedia")
- shepherdjerred 7y agofinally my lisp class has aided me in a real-life scenario
- onionisafruit 7y agoI never had a lisp class, so I'm sitting here wondering why there is one single quote.
- _emacsomancer_ 7y agoto prevent evaluation.
- rq1 7y agoOtherwise the single-unquoted ( would be treated as a function call.
- lawl 7y agoThat's a reader macro to make it quoted. What that means is 'don't try to evaluate this as a function call'. Basically it's a data list.
- dang 7y agoOut of curiosity, did the sibling replies to your comment (all of which are accurate!) answer your question, in the sense that you now understand?
- Symbiote 7y agoI'm glad my functional programming classes used Haskell instead: Hugs> reverse ["Wikipedia", "over", "DNS"] ["DNS","over","Wikipedia"]