import { indexBy } from "https://deno.land/x/rambda@v9.1.0/rambda.js";
It generates object with properties provided by condition
and values provided by list
array.
If condition
is a function, then all list members are passed through it.
If condition
is a string, then all list members are passed through R.path(condition)
.