Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: Coroutines with Higher Order Functions   Coroutines are non-preemptive concurrent subroutines that, unlike preemptive
threads, voluntarily transfer control between each others. Introduced in the
60s before loosing in popularity in the 80s, they have seen a regain of
interest in recent years, thanks to how elegantly they can solve numerous
algorithmic problems. Unfortunately, some mainstream languages still lack
support for coroutines, hence requiring either the use of non-standard
interpreter/compilers, or elaborate hacks in thrid-party libraries. In this
short paper, we propose a very simple way to implement coroutine-like
components on the top of any language that support or can emulate higher order
functions. We accompany our explanations with a handful of examples in
JavaScript.

16
The categories of this paper are: stat
24
The categories of this paper are: dg-ga
17
The categories of this paper are: q-fin
26
The categories of this paper are: bayes-an
33
The categories of this paper are: plasm-ph
13
The categories of this paper are: quant-ph
3
The categories of this paper are: physics
6
The categories of this paper are: astro-ph
27
The categories of this paper are: comp-gas
10
The categories of this paper are: q-bio
2
The categories of this paper are: math
14
The categories of this paper are: math-ph
11
The categories of this paper are: hep-lat
32
The categories of this paper are: atom-ph
29
The categories of this paper are: funct-an
12
The categories of this paper are: nucl-th