I haven't seen this type of function before, is there an intended use-case in mind? Like a super generalized putIfAbsent?