Changeset 39552 in project
- Timestamp:
- 01/29/21 05:28:31 (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/eggref/5/list-utils
r39549 r39552 9 9 10 10 == Documentation 11 12 === list-utils 13 14 === Usage 15 16 <enscript language=scheme> 17 (import list-utils) 18 </enscript> 11 19 12 20 === skip+ … … 121 129 Returns a list, either the list {{OBJECT}} or {{(list OBJECT)}}. 122 130 131 === ensure-flat-list 132 133 <procedure>(ensure-flat-list OBJ) -> list</procedure> 134 135 Returns a flat {{list}} from {{OBJ}}. 136 137 === list-flatten 138 139 <procedure>(list-flatten LS) -> list</procedure> 140 141 Returns a flattened {{LS}}. 142 123 143 === not-null? 124 144 … … 291 311 {{>}} {{(length LIST))}}. In which case {{FILL}} is used. 292 312 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 325 Returns 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 338 Returns {{(list->comma-string REST}}. 339 340 === make-comma-string 341 342 <procedure>(make-comma-string LEN [STR]) -> string</procedure> 343 344 Returns a comma-string of length {{LEN}} and element {{STR}}, default {{"?"}}. 298 345 299 346 300 347 == Requirements 301 348 349 [[utf8]] 302 350 [[srfi-1]] 303 351 [[check-errors]] … … 311 359 == Version history 312 360 361 ; 2.3.0 : Add {{list-flatten}} & {{ensure-flat-list}}. Add ''comma-list-utils''. 313 362 ; 2.2.0 : Add {{list-unique}} & {{list-unique/duplicates}}. 314 363 ; 2.1.1 : Fix {{split-at+}} optional argument.
Note: See TracChangeset
for help on using the changeset viewer.