huge file system rewrite, i lost a lot of track; permissions and user system
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
import { type Entry } from "./main"
|
||||
import { wrap_bsearch, type WrapBSearch } from "./wrap"
|
||||
import wrap, { WrapResult } from "./wrap"
|
||||
|
||||
export default function directory_search<T extends Entry>(entry_collection: T[], file_name: string): WrapBSearch<T> | undefined {
|
||||
function wrap_bsearch<T extends Entry>(index: number, result: T): WrapResult<T, number> {
|
||||
return wrap(result, index)
|
||||
}
|
||||
|
||||
export default function directory_search<T extends Entry>(entry_collection: T[], file_name: string): WrapResult<T, number> | undefined {
|
||||
let start = 0
|
||||
let end = entry_collection.length-1
|
||||
while (start<=end) {
|
||||
|
Reference in New Issue
Block a user