List Commands Library for 50g
|
07-22-2017, 11:24 PM
(This post was last modified: 09-10-2017 02:20 PM by DavidM.)
Post: #49
|
|||
|
|||
RE: List Commands Library for 50g
Although I'm still calling this a "development" release, it's really more like a beta. It feels like the command set has stabilized, and as far as I'm aware everything is fully functional in this release. Please beat on it as much as you like and let me know if anything misbehaves or doesn't work as expected.
Thanks to everyone who has participated with this! Hopefully the result is a useful collection of tools to extend the list processing functionality of the 49-50 systems. Edit: The attachment has been deleted; see the first post in this thread for the latest version. ListExt Release Notes Version 0.11.0d 2017-07-22 - Added new command: I→NL - Updated DOCOMB and DOPERM to make non-selected elements for the current combination available in local variable CRMNT. - Changed behavior of DOCOMB and DOPERM so that the standard user stack is available to the user program. - Fixed bug in LRCL to correctly handle local variables. - Dropped the LV→I command and incorporated its functionality into NL→I. - NL→I now includes all pre-radix digits when building the final integer result. - Updated command description for NL→I to include information about sign treatment. - Updated and fixed a several typos in the command descriptions. COMMAND SUMMARY DOCOMB - feeds indicated combinations of a list to a user-supplied program DOPERM - feeds indicated permutations of a list to a user-supplied program LCLLT - collates a list of sublists LCNT - counts objects in a list LDDUP - removes duplicates from a list LDST - distributes list items into sublists (reciprocal of LCLLT) LEQ - checks list items to see if any do not match LGRP - replaces repeated elements with a single instance LHDTL - retrieves the first element in a list while leaving the rest on the stack LMRPT - repeats list contents as indicated by count LNDUP - creates a list by repeating an object as indicated by count LPOS - returns a list of all positions of an object in a list LPOSL - returns a list of all positions of an object in a list or its sublists LPROD - ΠLIST that also accepts lists with 0 or 1 element LRCL - recalls objects identified by variables in a list LREPL - replaces list elements with a substitute object as indicated LRLL - rolls the list (equivalent to 1 LROT) LRLLD - "roll down" the list (equivalent to -1 LROT) LROT - rotates list elements left or right as indicated by count LRPCT - list with LGRP elements and another list of the count of each element LSDIV - subdivides a list into <count> sublists LSEQ - creates a list of <count> integers as a sequence from 1..<count> LSEQR - creates a list of integers for the range specified LSHF - shuffles the contents of a list LSPLT - splits a list as indicated into two sublists LSUM - ΣLIST that also accepts lists with 0 or 1 element LSWP - swaps the positions of two list elements LXIL - explodes inner sublists into individual elements (non-recursive) LXILR - recursive version of LXIL RPTCHR - creates a string of repeated characters I→NL - converts an integer to a list of numbers NL→I - converts a list of numbers to an integer S→NL - converts a string to a list of numbers NL→S - converts a list of numbers to a string S→SL - converts a string to a list of characters SL→S - converts a list of characters to a string |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)