File: bubblesort.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (18 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# bubblesort package
# Matthew Bertucci 11/13/2021 for v1.1

#include:etoolbox

\bubblesort{list}{macro%cmd}#d
\bubblesort[comparator cmd]{list}{macro%cmd}#d

\doublebubblesort{list1}{macro1%cmd}{list2}{macro2%cmd}#d
\doublebubblesort[comparator cmd]{list1}{macro1%cmd}{list2}{macro2%cmd}#d

\bubblesortflag
\realSort{arg1}{arg2}
\alphSort{arg1}{arg2}
\ta#S
\tb#S
\leftappendItem{%<arg1%>}\to{%<arg2%>}#S
\to#S