Multiple Variable-length arguments [on hold]











up vote
-3
down vote

favorite












Is there a way to define a function with multiple variable length arguments. For example



def param(*func,*args):

return([func(arg) for arg in args] for func in funcs])









share|improve this question







New contributor




user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by яүυк, Gerrit0, hjpotter92, 200_success, Sᴀᴍ Onᴇᴌᴀ 1 hour ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – яүυк, Gerrit0, hjpotter92, Sᴀᴍ Onᴇᴌᴀ

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    Welcome here! Who is funcs? More, def param(*func,*args) isn't valid Python code. The code is broken => it'll probably be closed. Please add more context to your question and fix the code within it.
    – яүυк
    3 hours ago








  • 1




    The idea of multiple variable-length arguments doesn't even make sense: how would this function know where func ends and args begins? Furthermore, Code Review only reviews concrete working code, which this isn't. That said, if you have a particular working function that you think might benefit from a different parameter-passing design, feel free to post that for review, and we might be able to suggest a better way to do it.
    – 200_success
    1 hour ago















up vote
-3
down vote

favorite












Is there a way to define a function with multiple variable length arguments. For example



def param(*func,*args):

return([func(arg) for arg in args] for func in funcs])









share|improve this question







New contributor




user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by яүυк, Gerrit0, hjpotter92, 200_success, Sᴀᴍ Onᴇᴌᴀ 1 hour ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – яүυк, Gerrit0, hjpotter92, Sᴀᴍ Onᴇᴌᴀ

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    Welcome here! Who is funcs? More, def param(*func,*args) isn't valid Python code. The code is broken => it'll probably be closed. Please add more context to your question and fix the code within it.
    – яүυк
    3 hours ago








  • 1




    The idea of multiple variable-length arguments doesn't even make sense: how would this function know where func ends and args begins? Furthermore, Code Review only reviews concrete working code, which this isn't. That said, if you have a particular working function that you think might benefit from a different parameter-passing design, feel free to post that for review, and we might be able to suggest a better way to do it.
    – 200_success
    1 hour ago













up vote
-3
down vote

favorite









up vote
-3
down vote

favorite











Is there a way to define a function with multiple variable length arguments. For example



def param(*func,*args):

return([func(arg) for arg in args] for func in funcs])









share|improve this question







New contributor




user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Is there a way to define a function with multiple variable length arguments. For example



def param(*func,*args):

return([func(arg) for arg in args] for func in funcs])






beginner python-3.x functional-programming






share|improve this question







New contributor




user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









user31953

1




1




New contributor




user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user31953 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by яүυк, Gerrit0, hjpotter92, 200_success, Sᴀᴍ Onᴇᴌᴀ 1 hour ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – яүυк, Gerrit0, hjpotter92, Sᴀᴍ Onᴇᴌᴀ

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by яүυк, Gerrit0, hjpotter92, 200_success, Sᴀᴍ Onᴇᴌᴀ 1 hour ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – яүυк, Gerrit0, hjpotter92, Sᴀᴍ Onᴇᴌᴀ

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 2




    Welcome here! Who is funcs? More, def param(*func,*args) isn't valid Python code. The code is broken => it'll probably be closed. Please add more context to your question and fix the code within it.
    – яүυк
    3 hours ago








  • 1




    The idea of multiple variable-length arguments doesn't even make sense: how would this function know where func ends and args begins? Furthermore, Code Review only reviews concrete working code, which this isn't. That said, if you have a particular working function that you think might benefit from a different parameter-passing design, feel free to post that for review, and we might be able to suggest a better way to do it.
    – 200_success
    1 hour ago














  • 2




    Welcome here! Who is funcs? More, def param(*func,*args) isn't valid Python code. The code is broken => it'll probably be closed. Please add more context to your question and fix the code within it.
    – яүυк
    3 hours ago








  • 1




    The idea of multiple variable-length arguments doesn't even make sense: how would this function know where func ends and args begins? Furthermore, Code Review only reviews concrete working code, which this isn't. That said, if you have a particular working function that you think might benefit from a different parameter-passing design, feel free to post that for review, and we might be able to suggest a better way to do it.
    – 200_success
    1 hour ago








2




2




Welcome here! Who is funcs? More, def param(*func,*args) isn't valid Python code. The code is broken => it'll probably be closed. Please add more context to your question and fix the code within it.
– яүυк
3 hours ago






Welcome here! Who is funcs? More, def param(*func,*args) isn't valid Python code. The code is broken => it'll probably be closed. Please add more context to your question and fix the code within it.
– яүυк
3 hours ago






1




1




The idea of multiple variable-length arguments doesn't even make sense: how would this function know where func ends and args begins? Furthermore, Code Review only reviews concrete working code, which this isn't. That said, if you have a particular working function that you think might benefit from a different parameter-passing design, feel free to post that for review, and we might be able to suggest a better way to do it.
– 200_success
1 hour ago




The idea of multiple variable-length arguments doesn't even make sense: how would this function know where func ends and args begins? Furthermore, Code Review only reviews concrete working code, which this isn't. That said, if you have a particular working function that you think might benefit from a different parameter-passing design, feel free to post that for review, and we might be able to suggest a better way to do it.
– 200_success
1 hour ago















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python