import { curry } from '@typed/lambda'
export const forEach: {
(fn: (value: A) => void, iterable: Iterable): void
(fn: (value: A) => void): (iterable: Iterable) => void
} = curry(__forEach)
export function __forEach(fn: (value: A) => void, iterable: Iterable): void {
for (const x of iterable) {
fn(x)
}
}