import { peek as _peek } from "@thi.ng/arrays/peek" ; import type { Transducer } from "./api.js" ; import { map } from "./map.js" ; /**
 * Transducer version of  {@link @thi.ng/api#peek} , i.e. extracts the
 * last item of an array.
 *
 *  example param src export function peek < T > ( ) ; export function peek < T > ( src ) ; export function peek < T > ( src ? ) { return map ( _peek , src ! ) ; }