Cheatsheet: Data Structures
    Array / List
    Map / Dict
    Set
    Tuple
    Struct / Data Class
    Stacks
    Other Data Structures
    Collection Conversions
Cheatsheet: Control Flow
Cheatsheet: Class

Polyglot CheatSheet - Imports

Updated: 2022-04-04

C++

  • #include <utility> for std::move
  • #include <functional> for std::function
  • #include <string> for std::string

Java

import java.util.ArrayList;

Python

import foo
from foo import bar

JavaScript

import foo from 'foo';

import { readFileSync } from 'fs';

import * as d3 from 'd3';