hpi-swa-teaching / SpreadSheetTool

An interactive spreadsheet tool for Squeak
9 stars 3 forks source link

Range-based formulas #46

Open LinqLover opened 5 years ago

LinqLover commented 5 years ago

As an enthusiastic Squeak User, IWLT be able to reference many cells at once using a formula, in order to aggregate data. The protocol should be very convenient again.

Acceptance criteria

Example

I want to evaluate a formula like the following (this is NOT a practical but rather a feasibility example):

^(((self from: 1 @ 1 to: 2 @ 3)
    select: #isEven
    thenCollect: [:v :x :y | v + x - y])
        select: [:v :p | p x isEven xor: (p y isEven)])
            detect: #isPrime ifNone: 42
LinqLover commented 5 years ago

Estimated effort: 8