Walkthrough of an RPL program for an RPN programmer
|
08-19-2018, 01:13 PM
(This post was last modified: 08-19-2018 02:35 PM by Albert Chan.)
Post: #5
|
|||
|
|||
RE: Walkthrough of an RPL program for an RPN programmer
(08-19-2018 10:15 AM)Thomas Klemm Wrote: I'm not aware of a way to partition a list in Python. You mean like this ? Code: def partition(lst, n, step=0): # no step = no overlap Perhaps we do not need partitioned list, map, and sum. Just do it all at once. Code: def cross_and_sum(((x, y), sum), v): |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)