maybe_add: adds value to lst with the key nm if nm is not already in lst

maybe_addR Documentation

adds value to lst with the key nm if nm is not already in lst

Description

adds value to lst with the key nm if nm is not already in lst

Usage

maybe_add(lst, nm, val)

Arguments

lst

a list

nm

string that is a key

val

a value to add to the list

Examples

list(a = 1, b = 2) |> maybe_add('c', 4) |> maybe_add('a', 99)



csps-efpc/TokenLink documentation built on Feb. 10, 2023, 3:30 a.m.