DRAFT: implement sequence
This commit is contained in:
5
src/sequence/forEach.ts
Normal file
5
src/sequence/forEach.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function forEach<T>(value: Iterable<T>, action: (it: T) => void) {
|
||||
for (const it of value) {
|
||||
action(it);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user