multiple-value Questions
4
Solved
Recently, I've been often nesting several functions that return multiple values. However, unlike let, which me allows to write these calls elegantly into one big statement, I always end up with a l...
Aborticide asked 1/2, 2020 at 18:54
2
Solved
I have a bash script that calls a python script. At first I was just returning one variable and that is fine, but now I was told to return two variables and I was wondering if there is a clean and ...
Global asked 21/6, 2013 at 15:9
1
I am trying to plot errorbar with the array of mean values and standard deviation by python as below:
p11 = np.genfromtxt(filn1,delimiter="",usecols=0,dtype=None)
p12 = np.genfromtxt(filn3,delimit...
Lepp asked 9/3, 2016 at 15:44
1
Solved
I'm trying to get the name of a enum given one of its multiple values:
class DType(Enum):
float32 = ["f", 8]
double64 = ["d", 9]
when I try to get one value giving the name i...
Equipollent asked 4/4, 2017 at 9:7
4
I want to set every eighth cell on one worksheet to the value of a cell in another worksheet. I wrote this here:
Sub xx()
For i = 5 To 45 Step 8
Set ThisWorkbook.Sheets("Sheet5").Cells(i, 3).Val...
Concurrence asked 4/6, 2015 at 8:26
4
Solved
What is the difference between values and list or cons in Racket or Scheme? When is it better to use one over the other? For example, what would be the disadvantage if quotient/remainder returns (c...
Laurinda asked 9/4, 2015 at 5:3
1
Solved
I'm trying to get three numbers out of a string
(parse-integer "12 3 6" :start 0 :junk-allowed t)
12 ;
2
Now this returns 2 as well, which is the number where it could be parsed.
So I can now gi...
Inefficient asked 3/11, 2014 at 2:49
11
I want to store multiple values in single key like:
HashTable obj = new HashTable();
obj.Add("1", "test");
obj.Add("1", "Test1");
Right now this throws an error.
Bole asked 29/12, 2010 at 13:24
2
Solved
Is there an idiomatic way to log result of a function returning multiple values? This won't compile:
import "log"
func returnPair() (int,int) {
return 42, 24
}
func main() {
log.Printf("Returned...
Monte asked 30/7, 2014 at 18:30
5
Solved
Up until recently, I've been storing multiple values into different hashes with the same keys as follows:
%boss = (
"Allan" => "George",
"Bob" => "George",
"George" => "lisa" );
%stat...
Rigadoon asked 10/10, 2008 at 7:47
1
Solved
I've read the docs (several different versions!) but I can't quite get my head wrapped around multiple-value-bind.
Here's what I (think I) know:
The first parameter is a list of variables that a...
Meyerbeer asked 27/7, 2013 at 18:18
1
Solved
I have a table with checkboxes that the user can check and delete that row in the table. I have everything working, but if the user checks two boxes, it only retrieves the first one on the table.
...
Hierarchy asked 10/5, 2011 at 16:24
1
© 2022 - 2024 — McMap. All rights reserved.