from lib import List lst = List.pure(2) >> (lambda n: List([n, n+1])) print(lst)