From d39953450429aa7659438d68e1f8c5525c9c976e Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 22 Jan 2019 02:40:22 +0100 Subject: [PATCH] updated list-utilities library blocks with new loop-arrow symbols --- HISTORY.md | 2 ++ libraries/list-utilities.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 66aa9d4e..4a5bc4b0 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -31,6 +31,8 @@ ### 2019-01-22 * Blocks: adjust label row below C-Slot to accomodate loop icon, if any * updated iteration-composition library blocks with new loop-arrow symbols +* updated list-utilities library blocks with new loop-arrow symbols + ### 2019-01-21 * let users make C-shape slots with loop arrow symbols. Sigh. diff --git a/libraries/list-utilities.xml b/libraries/list-utilities.xml index 06eb9e11..bf2630dd 100644 --- a/libraries/list-utilities.xml +++ b/libraries/list-utilities.xml @@ -1 +1 @@ -Take any number of input lists, and create a new list containing the items of the input lists. So APPEND [A B] [C D] where the [,,,] are lists reports the list [A B C D] not [[A B] [C D]].
11111
Reports a new list containing the items of the input list, but in the opposite order.
1inputresult
Reports a new list whose items are the same as in the input list, except that if two or more equal items appear in the input list, only the last one is kept in the result.
1
Reports a sorted version of the list in its first input slot, using the comparison function in the second input slot. For a list of numbers, using < as the comparison function will sort from low to high; using > will sort from high to low.
1even itemsmerge11#1#2
The second input is an "association list," a list of two-item lists. Each of those smaller lists has a "key" as its first item and a "value" as its second. ASSOC reports the first key-value pair in the association list whose key matches the first input.
11
#11datacountmapmany##1#1data listscount
#1datacount1
\ No newline at end of file +Take any number of input lists, and create a new list containing the items of the input lists. So APPEND [A B] [C D] where the [,,,] are lists reports the list [A B C D] not [[A B] [C D]].
11111
Reports a new list containing the items of the input list, but in the opposite order.
1inputresult
Reports a new list whose items are the same as in the input list, except that if two or more equal items appear in the input list, only the last one is kept in the result.
1
Reports a sorted version of the list in its first input slot, using the comparison function in the second input slot. For a list of numbers, using < as the comparison function will sort from low to high; using > will sort from high to low.
1even itemsmerge11#1#2
The second input is an "association list," a list of two-item lists. Each of those smaller lists has a "key" as its first item and a "value" as its second. ASSOC reports the first key-value pair in the association list whose key matches the first input.
11
#11datacountmapmany##1#1data listscount
#1datacount1
\ No newline at end of file