Skip to content

Map

12 wrappers generated from Map and Map.prototype. Every entry takes a single object literal whose keys mirror the original parameter names, plus an optional prompt: string for the LLM path.

MethodFirst signature
clear
clear(input: { map: <receiver>; prompt?: string }): Promise<void>
delete
delete(input: { map: <receiver>; key: K; prompt?: string }): Promise<boolean>
entries
entries(input: { map: <receiver>; prompt?: string }): Promise<MapIterator<[K, V]>>
forEach
forEach(input: { map: <receiver>; callbackfn?: (value: V; key: K; map: Map<K; V>) => void; thisArg?: any; prompt?: string }): Promise<void>
get
get(input: { map: <receiver>; key: K; prompt?: string }): Promise<V>
getOrInsert
getOrInsert(input: { map: <receiver>; key: K; defaultValue: V; prompt?: string }): Promise<V>
getOrInsertComputed
getOrInsertComputed(input: { map: <receiver>; key: K; callback?: (key: K) => V; prompt?: string }): Promise<V>
groupBy
groupBy(input: { items: Iterable<T>; keySelector?: (item: T; index: number) => K; prompt?: string }): Promise<Map<K, T[]>>
has
has(input: { map: <receiver>; key: K; prompt?: string }): Promise<boolean>
keys
keys(input: { map: <receiver>; prompt?: string }): Promise<MapIterator<K>>
set
set(input: { map: <receiver>; key: K; value: V; prompt?: string }): Promise<Map<K, V>>
values
values(input: { map: <receiver>; prompt?: string }): Promise<MapIterator<V>>