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

Racket

Name: Anonymous 2011-01-28 7:43

Why Racket doesn't have a uniform collection interface? It's fucking stupid to have string-ref, vector-ref, list-ref etc in the language.

Name: Anonymous 2011-01-28 8:17

>>3
>>4
http://docs.racket-lang.org/reference/sequences.html#(mod-path._racket/stream)

According to the page you linked you don't even need to write your own. Or am I missing something?


(stream-ref '(1 2 3) 1)
2
(stream-ref #(1 2 3) 1)
2
(stream-ref "123" 1)
#\2

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