UNPKG

@nfdi4plants/swate-components

Version:

Customizable React components for ontology annotation, based on Swate and the ARC.

61 lines 4.23 kB
import { IMap } from '@fable-org/fable-library-js/Util.js'; import { Option } from '@fable-org/fable-library-js/Option.js'; import { FSharpList } from '@fable-org/fable-library-js/List.js'; import { int32 } from '@fable-org/fable-library-js/Int32.js'; /** * If the value matches the default, a None is returned, else a Some is returned */ export declare function Option_fromValueWithDefault<$a>(d: $a, v: $a): Option<$a>; /** * Applies the function f on the value of the option if it exists, else applies it on the default value. If the result value matches the default, a None is returned */ export declare function Option_mapDefault<T>(d: T, f: ((arg0: T) => T), o: Option<T>): Option<T>; /** * Applies the function f on the value of the option if it exists, else returns the default value. */ export declare function Option_mapOrDefault<T, U>(d: Option<T>, f: ((arg0: U) => T), o: Option<U>): Option<T>; /** * If the value matches the default, a None is returned, else a Some is returned */ export declare function Option_fromSeq<T extends Iterable<$a>, $a>(v: T): Option<T>; export declare function List_tryPickAndRemove<T, U>(f: ((arg0: T) => Option<U>), lst: FSharpList<T>): [Option<U>, FSharpList<T>]; export declare function Dictionary_addOrUpdate<Key, T>(key: Key, value: T, dict: IMap<Key, T>): void; export declare function Dictionary_ofSeq<Key, T>(s: Iterable<[Key, T]>): IMap<Key, T>; export declare function Dictionary_tryFind<Key, T>(key: Key, dict: IMap<Key, T>): Option<T>; export declare function Dictionary_ofSeqWithMerge<T, Key>(merge: ((arg0: T, arg1: T) => T), s: Iterable<[Key, T]>): IMap<Key, T>; export declare function Dictionary_init<Key, T>(): IMap<Key, T>; export declare function Dictionary_items<Key, T>(dict: IMap<Key, T>): Iterable<[Key, T]>; export declare function StringDictionary_ofSeq(s: Iterable<[string, string]>): IMap<string, string>; export declare function IntDictionary_ofSeq<T>(s: Iterable<[int32, T]>): IMap<int32, T>; export declare function ResizeArray_create<T>(i: int32, v: T): T[]; export declare function ResizeArray_singleton<T>(a: T): T[]; export declare function ResizeArray_map<$a, $b>(f: ((arg0: $a) => $b), a: $a[]): $b[]; export declare function ResizeArray_mapi<$a, $b>(f: ((arg0: int32, arg1: $a) => $b), a: $a[]): $b[]; export declare function ResizeArray_map2<$a, $b, $c>(f: ((arg0: $a, arg1: $b) => $c), a: $a[], b: $b[]): $c[]; export declare function ResizeArray_choose<$a, $b>(f: ((arg0: $a) => Option<$b>), a: $a[]): $b[]; export declare function ResizeArray_filter<$a>(f: ((arg0: $a) => boolean), a: $a[]): $a[]; export declare function ResizeArray_fold<$a, $b>(f: ((arg0: $a, arg1: $b) => $a), s: $a, a: $b[]): $a; export declare function ResizeArray_foldBack<$a, $b>(f: ((arg0: $a, arg1: $b) => $b), a: $a[], s: $b): $b; export declare function ResizeArray_iter<$a>(f: ((arg0: $a) => void), a: $a[]): void; export declare function ResizeArray_iteri<$a>(f: ((arg0: int32, arg1: $a) => void), a: $a[]): void; export declare function ResizeArray_init<T>(n: int32, f: ((arg0: int32) => T)): T[]; export declare function ResizeArray_reduce<$a>(f: ((arg0: $a, arg1: $a) => $a), a: $a[]): $a; export declare function ResizeArray_collect<$a, $b extends Iterable<$c>, $c>(f: ((arg0: $a) => $b), a: $a[]): $c[]; export declare function ResizeArray_distinct<$a>(a: $a[]): $a[]; export declare function ResizeArray_isEmpty<$a>(a: $a[]): boolean; /** * Immutable append */ export declare function ResizeArray_append<$a>(a: $a[], b: $a[]): $a[]; /** * append a single element */ export declare function ResizeArray_appendSingleton<T>(b: T, a: T[]): T[]; export declare function ResizeArray_indexed<$a>(a: $a[]): [int32, $a][]; export declare function ResizeArray_rev<$a>(a: $a[]): $a[]; export declare function ResizeArray_take<$a>(n: int32, a: $a[]): $a[]; export declare function ResizeArray_groupBy<T, a>(f: ((arg0: T) => a), a: T[]): [a, T[]][]; export declare function ResizeArray_tryPick<T, $a>(f: ((arg0: T) => Option<$a>), a: T[]): Option<$a>; export declare function ResizeArray_zip<T, U>(a: T[], b: U[]): [T, U][]; export declare function ResizeArray_tryFind<T>(f: ((arg0: T) => boolean), a: T[]): Option<T>; //# sourceMappingURL=Collections.fs.d.ts.map