4 ms·
author ended article with > Leaning back in your chair, you think to yourself: > |/ what does this translate into?
by rgrs 7y ago
author ended article with
> Leaning back in your chair, you think to yourself:
> |/
what does this translate into?
- floatingatoll 7y agoI reversed each of my list of objections.
- icen 7y agodyadic | is or, or max. So e.g. 4 = |/1 2 3 4
- yiyus 7y agoRoughly: let max = list[0]; for (let i = 0; i < list.length; i++) { max = Math.max(list[i], max); } With a|b, you get the maximum between a and b. / is reduction. So, |/list, will be equivalent to list[0]|list[1]|list[2]|...|list[n], i.e. the maximum value in the list.