GenUtils


List

Namespace: Informedica.GenUtils.Lib

Additional utitilty functions for lists

Functions and values

Function or valueDescription
distinct xs
Signature: xs:'?6729 list -> '?6729 list
Type parameters: '?6729

Calling distinct on a list xs

replace pred x xs
Signature: pred:('?6727 -> bool) -> x:'?6727 -> xs:'?6727 list -> '?6727 list
Type parameters: '?6727

Replace an element x in a list xs when the pred function returns true.
Note: will only repolace the first element that satisfies the condition in pred

Fork me on GitHub