4 ms·
I am not familiar with Lisp but these don't look like n-tuples to me. Is it just a function that multiplies a value by a fixed number? As I understand it, a tu
by bbcbasic 11y ago
I am not familiar with Lisp but these don't look like n-tuples to me. Is it just a function that multiplies a value by a fixed number?
As I understand it, a tuple is a collection of typed objects. E.g. in C# the type Tuple<Int,Bool> or Haskell (Int,Bool)
- CaiGengYang 11y agoYup, It is just a function that multiplies a value by a fixed number. I just named it n-tuple because it rhymes : quadruple, centuple, but perhaps it was the wrong way to name it. I was just surprised to realise that there is no limit to the value of n for this type of function that multiplies a value by a fixed number, so I put this on Hackernews. It was a surprising result, at least to me ...
- bbcbasic 11y agoSame in Haskell there is Int for your normal bounded integer (28 bit I think) and there is Integer which is bounded only by the amount of memory you can allocate on the heap.