main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
721 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | type ListNode<T, K> = {
|
---|
| 2 | key: K;
|
---|
| 3 | next: undefined | ListNode<T, K>;
|
---|
| 4 | value: T;
|
---|
| 5 | };
|
---|
| 6 | type RootNode<T, K> = {
|
---|
| 7 | next: undefined | ListNode<T, K>;
|
---|
| 8 | };
|
---|
| 9 |
|
---|
| 10 | export function listGetNode<T, K>(list: RootNode<T, K>, key: ListNode<T, K>['key'], isDelete?: boolean): ListNode<T, K> | undefined;
|
---|
| 11 | export function listGet<T, K>(objects: undefined | RootNode<T, K>, key: ListNode<T, K>['key']): T | undefined;
|
---|
| 12 | export function listSet<T, K>(objects: RootNode<T, K>, key: ListNode<T, K>['key'], value: T): void;
|
---|
| 13 | export function listHas<T, K>(objects: undefined | RootNode<T, K>, key: ListNode<T, K>['key']): boolean;
|
---|
| 14 | export function listDelete<T, K>(objects: undefined | RootNode<T, K>, key: ListNode<T, K>['key']): ListNode<T, K> | undefined;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.