KitchenSink v1.1.0 KitchenSink.List View Source

this module is for List functions

Link to this section Summary

Functions

See KitchenSink.List.IndexBy.index_by/2

takes a list of maps, transforms it into a map of maps with their value being the value_key. basically making a look-up table

A convenient version of what is perhaps the most common use-case for map: extracting a list of property values

Link to this section Functions

See KitchenSink.List.IndexBy.index_by/2.

Link to this function index_on(list_of_maps, take_keys, value_key) View Source

takes a list of maps, transforms it into a map of maps with their value being the value_key. basically making a look-up table.

Link to this function pluck(list_of_maps, key) View Source

A convenient version of what is perhaps the most common use-case for map: extracting a list of property values.

With a List of Maps, extract 1 value defined by the key you give to pluck.