lswitch

lswitch, a command in ycl switch, is like switch, but each pattern is a list of patterns to match against the item in string at the corresponding position. All switch options are supported.

See Also

fptools::match, by dbohdan
Match a list against a pattern.

Description

lswitch is implemented using a heavy dose of knit.

Examples

lswitch unit tests
Various examples of the diff