lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scheme-question: matrix-operation


From: David Kastrup
Subject: Re: scheme-question: matrix-operation
Date: Mon, 04 Nov 2019 01:05:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> Hi,
>
> lets say I've a list of sublists like '((1 2 3)(4 5 6))
> I want to modify it, the result should be '((1 3 5)(2 4 6))
>
> This is a matrix-operation (not sure whether matrix is the correct
> english term), on could write it graphically:
> 1 2 3
> 4 5 6
> ->
> 1 3 5
> 2 4 6
>
> What's the best scheme-way to get it?

What is it that you are doing?  I don't see the principle you apply
here.  Changing '((1 2 3)(4 5 6)) to '((1 4) (2 5) (3 6)) is an obvious
transformation, but your single example does not really give much of an
idea of what you do.

> All but the last sublist will be of equal lengths, the last may or may
> not be shorter.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]