Post Reply 
Programming puzzles: processing lists!
06-05-2017, 11:48 AM (This post was last modified: 06-05-2017 11:54 AM by Gilles59.)
Post: #113
RE: Programming puzzles: processing lists!
(06-03-2017 08:00 PM)pier4r Wrote:  Awesome!

I hope you'll put this also in the general software library!

I agree ;D

What about a DOPERM command to handle list permutations.
Something like :

Code:


INPUT
 { 1 2 3 4 }             @ A list
 2                       @ Number of elements for permutation
 << My program >>        @ to handle each permutation
DOPERM
 
OUPUT (If MyProgram does nothing}
{ {1, 2}, {1, 3}, {1, 4},{2, 1}, {2, 3}, {2, 4},{3, 1}, {3, 2}, {3, 4},{4, 1}, {4, 2}, {4, 3} }
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - Gilles59 - 06-05-2017 11:48 AM



User(s) browsing this thread: 2 Guest(s)