« first day (81 days earlier)      last day (1279 days later) » 

06:13
# First adjust the length of the list of elements, then split into chunks from the last axis to the first
def reshape(shape, l):
^ @exedraj use the one which is speialise for code completion if you have that
yes
def reshape(shape, l):
    if len(shape) == 1:
        return l
    else:
        return [reshape(shape[1:], l[i]) for i in range(shape[0])]
apparently
it just slices lol
 
1 hour later…
07:20
# Make a reduce_first; like APL's ⌿; reduces on the first axis
def reduce_first(func, mat):
^@exedraj use codex

« first day (81 days earlier)      last day (1279 days later) »