NetLogo / NetLogo/Table-Extension

`table:max-value` and `table:max-key` to get the maximum value and key of the maximum value from a table

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

It would be very useful to have to functions, let's say table:max-value and table:max-key, which giver the maximum value in a table and the key corresponding to that value.

For example, given the following table:

let fruit table:make
table:put fruit "apple" 2
table:put fruit "orange" 5
table:put fruit "banana" 3

table:max-value fruit would give 5, while table:max-key fruit would give "orange".

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the Java table-extension primitive registrations and comparable table functions, then use the fruit example to verify both maximum-value and corresponding-key behavior before considering the work complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.