package bwd
Module Bwd.BwdLabelsSource
This module is similar to ListLabels but for backward lists.
Notes on the discrepancies with ListLabels:
- Functions
rev,rev_append,rev_map, andrev_map2will never be included. - A new function
prependwas added as the forward version ofappend. - A new module
Infixwas added for the infix notation. - Functions for association lists are currently missing, but might be added later.
- For the functions involving indices, such as
nth,nth_opt,iteri,mapi, andfilteri, the indices count from the right rather than the left. - All iteration functions, such as
iter,map,fold_left,fold_right,exist,mem,find,filter, and other similar functions, work from the right rather than the left. - Functions
init,tl(ashdfor lists),hd(astlfor lists),merge,to_seq, andof_seqare also missing, but might be added in the future.
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.