import { insertEventIntoDescendingList } from "nostr-tools/utils";
import { scan } from "rxjs";
/**
 * Accumulate events into an ordered timeline
 * @note This does not remove duplicate events
 */
export function mapEventsToTimeline() {
    return scan((timeline, event) => insertEventIntoDescendingList(timeline, event), []);
}
