Unary map
let closure as_pct = (ratio: u64s) => ratio * 100
collection percentages = @input("COLLECTION_RATIONS")
.map(as_pct)operator to_pct<T> {
input ratios: T
output ratios
.map(ratio => ratio * 100)
}
collection percentages = @input("COLLECTION_RATIONS")
.to_pct()Last updated