package bwd
Module Bwd.BwdLabelsSource
This module is similar to ListLabels but for backward lists.
Notes on the discrepancies with ListLabels:
New:
Changed:
conswas replaced bysnoc.appendwas replaced by a new version that performs the "textual order yoga".- All indices count from the right rather than the left:
nth,nth_opt,init,iteri,mapi, andfilteri. - All iteration functions work from the right rather than the left:
iter,map,fold_left,fold_right,exists,mem,find,filter, and other similar functions.
Forbidden:
- Functions
rev,rev_append,rev_map, andrev_map2will never be included.
- Functions
Missing but may be added in the future:
tl(ashdfor lists),hd(astlfor lists),concat,flatten,concat_map.- Functions related to association lists.
- Functions related to sorting.
- Conversion from/to sequences.
Please open a GitHub issue if you want a function to be included. We want to make this library useful to you, too!
Comparison
Iterators
Note that the iteration direction is from the right to the left, in the opposite direction of the corresponding functions in ListLabels.
Iterators on two lists
Note that the iteration direction is from the right to the left, in the opposite direction of the corresponding functions in ListLabels.
List scanning
Note that the iteration direction is from the right to the left, in the opposite direction of the corresponding functions in ListLabels.
List searching
Note that the iteration direction is from the right to the left, in the opposite direction of the corresponding functions in ListLabels.