collection-abstraction/pairs

View on GitHub
src/invertIterable.js

Summary

Maintainability
A
0 mins
Test Coverage
import {map} from '@iterable-iterator/map';

import swap from './swap.js';

export default function invertIterable(iterable) {
    return map(swap, iterable);
}