| |<- | <- | -> | ->| |
[jao@zack]$ osh gen 5 ^ f 'x: (x, 2 * x + 1)' $
(0, 1)
(1, 3)
(2, 5)
(3, 7)
(4, 9)
– f: Osh command for transforming objects streaming through by applying function.
– 'x: (x, 2 * x + 1)': Python function, (keyword lambda is optional).