Timeline for Can a function be made to accept a variable amount of inputs?
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 9, 2012 at 3:48 | comment | added | Michael Wijaya | @Mr.Wizard I mixed up two ideas when I wrote up the answer. The original function does not actually require the use of BlankSequence. In fact, it fails if I evaluate datasetAverage[{1,2,3},{4,5,6}]. | |
| Jun 9, 2012 at 3:45 | history | edited | Michael Wijaya | CC BY-SA 3.0 | Replaced BlankSequence with Blank in the definition of datasetAverage |
| Jun 9, 2012 at 3:38 | comment | added | Mr.Wizard | I'm rather confused by your edit. Why did you convert this to a single argument function? | |
| Jun 9, 2012 at 3:33 | history | edited | Michael Wijaya | CC BY-SA 3.0 | Replaced BlankSequence with Blank in the definition of datasetAverage |
| Jun 9, 2012 at 1:43 | vote | accept | Nothingtoseehere | ||
| Jun 9, 2012 at 1:45 | |||||
| Jun 9, 2012 at 1:40 | comment | added | Michael Wijaya | @RHall I used the BlankSequence pattern, which stands for any sequence of one or more expressions. So now I can feed in a sequence of datasets. | |
| Jun 9, 2012 at 1:38 | comment | added | Nothingtoseehere | Thank you! What allows for the multiple inputs? | |
| Jun 9, 2012 at 1:28 | history | answered | Michael Wijaya | CC BY-SA 3.0 |