Skip to content

Map.put_in_path #2

@paulbalomiri

Description

@paulbalomiri

Map.put_in_path should have the interface

  • Map.put_in_path(map, path, value, options)
  • Options:
  • fun a function with arguments (
    • :create_path, parents, key -> map
    • :create_value, parents, cur_value -> map
  • {:create_value, fun} where fun accepts parents, cur_value as arguments and returns value
  • {:create_path, fun} where fun accepts parents, key as arguments and returns the path element's value (%{} by default)
  • :replace: replaces the last element this is the default
  • :make_and_append_to_list
  • make_and_prepend_to_list
  • :append_list
  • :prepend_list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions