Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 134

this tag is used for questions regarding splitting a list into sublists

12 votes
Accepted

Integer partitions in all orderings

This seems to be quite quick : output = Flatten[Permutations /@ IntegerPartitions[60, {5}], 1]; // AbsoluteTiming (* {0.245025, Null} *) output // Dimensions (* {455126, 5} *)
b.gates.you.know.what's user avatar
17 votes
Accepted

How to Map a subset of list elements to a function?

You might first partition your list and then use Map as usual : f[#[[1]], #[[2]]] & /@ Partition[{1,2,3,4}, 2, 1] (* {f[1, 2], f[2, 3], f[3, 4]} *)
b.gates.you.know.what's user avatar