| function:
Pipe the output of one function to the next function.
Examples:
- running:
(| (get . "key"), (get . 3), (get . "key-2"))for input:{"key": [20, 40, 60, {"key-2": 100}]}will give:100Because the firstgetwill return the list in the input, the second one will return the fourth item in the list, and the last one will get thekey-2element in that item.
- running:
(| (get . 1), (+ . 4), (+ . 10), (+ . (len ^^^)))for input:[1, 2, 3, 4]will give:20Because The first get will return 2, the second one will add 4, then third one will add 10, and the last one will add the size of the original list, so2 + 4 + 10 + 4 = 20.