Changeset 39552 in project


Ignore:
Timestamp:
01/29/21 05:28:31 (5 weeks ago)
Author:
Kon Lovett
Message:

rel 2.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/list-utils

    r39549 r39552  
    99
    1010== Documentation
     11
     12=== list-utils
     13
     14=== Usage
     15
     16<enscript language=scheme>
     17(import list-utils)
     18</enscript>
    1119
    1220=== skip+
     
    121129Returns a list, either the list {{OBJECT}} or {{(list OBJECT)}}.
    122130
     131=== ensure-flat-list
     132
     133<procedure>(ensure-flat-list OBJ) -> list</procedure>
     134
     135Returns a flat {{list}} from {{OBJ}}.
     136
     137=== list-flatten
     138
     139<procedure>(list-flatten LS) -> list</procedure>
     140
     141Returns a flattened {{LS}}.
     142
    123143=== not-null?
    124144
     
    291311{{>}} {{(length LIST))}}. In which case {{FILL}} is used.
    292312
    293 == Usage
    294 
    295 <enscript language=scheme>
    296 (import list-utils)
    297 </enscript>
     313=== comma-list-utils
     314
     315=== Usage
     316
     317<enscript language=scheme>
     318(import comma-list-utils)
     319</enscript>
     320
     321=== list->comma-string
     322
     323<procedure>(list->comma-string LS [EMPTY? [COMMA]]) -> string</procedure>
     324
     325Returns list elements as strings concatenated with commas.
     326
     327; {{EMPTY?}} : {{boolean}} ; allow empties? default {{#f}}.
     328; {{COMMA}} : {{string}} ; comma string. default {{", "}}.
     329
     330=== comma-string->list
     331
     332<procedure>(comma-string->list STR) -> list</procedure>
     333
     334=== list-comma-join
     335
     336<procedure>(list-comma-join . REST) -> string</procedure>
     337
     338Returns {{(list->comma-string REST}}.
     339
     340=== make-comma-string
     341
     342<procedure>(make-comma-string LEN [STR]) -> string</procedure>
     343
     344Returns a comma-string of length {{LEN}} and element {{STR}}, default {{"?"}}.
    298345
    299346
    300347== Requirements
    301348
     349[[utf8]]
    302350[[srfi-1]]
    303351[[check-errors]]
     
    311359== Version history
    312360
     361; 2.3.0 : Add {{list-flatten}} & {{ensure-flat-list}}. Add ''comma-list-utils''.
    313362; 2.2.0 : Add {{list-unique}} & {{list-unique/duplicates}}.
    314363; 2.1.1 : Fix {{split-at+}} optional argument.
Note: See TracChangeset for help on using the changeset viewer.