Jikka-5.0.11.1: A transpiler from Python to C++ for competitive programming
Copyright(c) Kimiyuki Onaka 2020
LicenseApache License 2.0
Maintainerkimiyuki95@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Jikka.CPlusPlus.Convert.UnpackTuples

Description

 
Synopsis

Documentation

run :: (MonadAlpha m, MonadError Error m) => Program -> m Program Source #

run unpack tuples.

Examples

Before:

tuple<int, int> c = make_tuple(a, b);
func(get<0>(c), get<1>(c));

After:

int c0 = a;
int c1 = b;
func(c0, c1);