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

On a scale from 0 to 1

Name: Anonymous 2015-09-28 22:32

How based are your arrays?

Name: Anonymous 2016-08-28 12:11

>>26
Arrays are maps, like hash tables and "pure" functions (which should really just be called functions). They map an index to a value.

People who use one-based (or arbitrary based) arrays look at it like this:
1|A
2|B
3|C
4|D

Arrays are treated like other kinds of maps.

People who use zero-based arrays try to justify their decision like this:
0|
|A
1|
|B
2|
|C
3|
|D

They do not, however, do this for functions or associative arrays. If you asked them to make a table for functions, they would put the arguments and results in the same row.

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