tupleRange, tuplePrepend
authorTudor Bosman <tudorb@fb.com>
Thu, 21 May 2015 14:54:11 +0000 (07:54 -0700)
committerwoo <woo@fb.com>
Tue, 26 May 2015 18:31:32 +0000 (11:31 -0700)
commitd5550513ae99ac1a9c59bb7a7dcd86e03739b890
tree2352fd1c15e6c656b88d44d3a70507b41d232ffb
parent3651364b70406ff1c0c2ed2214777038cf1fe526
tupleRange, tuplePrepend

Summary:
tupleRange<start, n>(tuple): return a tuple consisting of a range of elements
from the given tuple

tuplePrepend(x, tuple): return a tuple consisting of prepending x to the given
tuple.

For Lispies:

std::get<0>(tuple) is car.
tupleRange<1>(tuple) is cdr.
tuplePrepend(x, tuple) is cons.

Test Plan: test added

Reviewed By: lesha@fb.com

Subscribers: trunkagent, lesha, ilyam, folly-diffs@, yfeldblum, chalfant, jhj, alerer, kma, pamelavagata, tulloch

FB internal diff: D2087568

Signature: t1:2087568:1432164681:18795d0e8bb01f38ffc6949ac233f514ab098355
folly/Makefile.am
folly/experimental/TupleOps.h [new file with mode: 0644]
folly/experimental/test/TupleOpsTest.cpp [new file with mode: 0644]