Is there any programming language that can return multiple arrays?

Is there any programming language that can return multiple arrays?
By that I mean something like
return array[0..100]
If you can name it I'll learn that.

Attached: images.png (348x145, 6.03K)

Javascript

common lisp allows for multiple return values

1. your code snippet only returns a single array.
2. yes languages that can return tuples. (and i think also go)
in c# you could do something like this:
return (array1, array2);

return [[1,2,3], [2,3,4]]

Would that return 100 arrays or two though?

Should be possible in any (non meme) language. Just make an array of arrays

In most languages you can just return a tuple with mutiple arrays, or arrays of arrays

your question is written stupidly
but anyway python

The tuple example returns 2 arrays...๐Ÿ˜’

>ARE THERE ANY LANGUAGES WITH SYNTACTICAL SUGAR IMPLEMENTING SOMETHING THAT CAN BE ACHIEVED THROUGH A SHORT FUNCTION
๐Ÿ˜ฃ

checked

Go has multiple return values, including of different types, as an explicit feature. Python's tuple creation and destructuring makes it more or less look like it has that too. You can just return arbitrary arrays in dynamically typed languages anyway.

/thread

return [ [ 1,2 ], [3, 4] ]

good job wojak. you got the cylinder lined up with the whole

golang

Attached: 1648627563356.gif (50x50, 1.36K)

k){(!x;!y)}[69;420]

...

Python

Attached: pythonBased.png (993x238, 9.46K)

?? in what meme language is it not possible ๐Ÿ˜ฒ

C, just return a pointer to a multidimensional array

Umm sweetie, thatโ€™s a 2d array