help.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 |
{ "sigils": { "$": { "description": "See get-env", "kind": "sigil", "module": "global", "name": "$" }, "'": { "description": "See quotesym", "kind": "sigil", "module": "global", "name": "'" }, ":": { "description": "See define", "kind": "sigil", "module": "global", "name": ":" }, "?": { "description": "See help", "kind": "sigil", "module": "global", "name": "?" }, "@": { "description": "See bind", "kind": "sigil", "module": "global", "name": "@" }, "^": { "description": "See lambda", "kind": "sigil", "module": "global", "name": "^" }, "~": { "description": "See lambda-bind", "kind": "sigil", "module": "global", "name": "~" } }, "symbols": { "!=": { "description": "Returns true if a1 is not equal to a2, false otherwise.", "kind": "symbol", "module": "global", "name": "!=", "signature": "a1 a2 ==> bool" }, "$": { "description": "See get-env", "kind": "symbol", "module": "global", "name": "$" }, "%": { "description": "See interpolate", "kind": "symbol", "module": "global", "name": "%" }, "&&": { "description": "See expect-all", "kind": "symbol", "module": "global", "name": "&&" }, "||": { "description": "See expect-any", "kind": "symbol", "module": "global", "name": "||" }, "'": { "description": "See quotesym", "kind": "symbol", "module": "global", "name": "'" }, "*": { "description": "Multiplies num1 by num2.", "kind": "symbol", "module": "global", "name": "*", "signature": "num1 num2 ==> num3" }, "+": { "description": "Sums num1 and num2.", "kind": "symbol", "module": "global", "name": "+", "signature": "num1 num2 ==> num3" }, "-": { "description": "See dequote", "kind": "symbol", "module": "global", "name": "-" }, "-inf": { "description": "Returns negative infinity.", "kind": "symbol", "module": "global", "name": "-inf", "signature": " ==> num" }, "/": { "description": "Divides num1 by num2.", "kind": "symbol", "module": "global", "name": "/", "signature": "num1 num2 ==> num3" }, ":": { "description": "See define", "kind": "symbol", "module": "global", "name": ":" }, "::": { "description": "See operator", "kind": "symbol", "module": "global", "name": "::" }, "<": { "description": "Returns true if a1 is smaller than a2, false otherwise. \r\n \r\n Note\r\n \r\n Only comparisons among two numbers or two strings are supported.", "kind": "symbol", "module": "global", "name": "<", "signature": "a1 a2 ==> bool" }, "<=": { "description": "Returns true if a1 is smaller than or equal to a2, false otherwise.\r\n \r\n Note\r\n \r\n Only comparisons among two numbers or two strings are supported.", "kind": "symbol", "module": "global", "name": "<=", "signature": "a1 a2 ==> bool" }, "=%": { "description": "See apply-interpolate", "kind": "symbol", "module": "global", "name": "=%" }, "=-=": { "description": "See expect-empty-stack", "kind": "symbol", "module": "global", "name": "=-=" }, "==": { "description": "Returns true if a1 is equal to a2, false otherwise.", "kind": "symbol", "module": "global", "name": "==", "signature": "a1 a2 ==> bool" }, "==>": { "description": "Symbol used to separate input and output values in operator signatures.", "kind": "symbol", "module": "global", "name": "==>", "signature": " ==> " }, "=>": { "description": "See apply", "kind": "symbol", "module": "global", "name": "=>" }, ">": { "description": "Returns true if a1 is greater than a2, false otherwise. \r\n \r\n Note\r\n \r\n Only comparisons among two numbers or two strings are supported.", "kind": "symbol", "module": "global", "name": ">", "signature": "a1 a2 ==> bool" }, "><": { "description": "See infix-dequote", "kind": "symbol", "module": "global", "name": "><" }, ">=": { "description": "Returns true if a1 is greater than or equal to a2, false otherwise.\r\n \r\n Note\r\n \r\n Only comparisons among two numbers or two strings are supported.", "kind": "symbol", "module": "global", "name": ">=", "signature": "a1 a2 ==> bool" }, ">>": { "description": "See prefix-dequote", "kind": "symbol", "module": "global", "name": ">>" }, "?": { "description": "See help", "kind": "symbol", "module": "global", "name": "?" }, "@": { "description": "See bind", "kind": "symbol", "module": "global", "name": "@" }, "^": { "description": "See lambda", "kind": "symbol", "module": "global", "name": "^" }, "all?": { "description": "Applies predicate quot2 to each element of quot1 and returns true if all elements of quot1 satisfy predicate quot2, false otherwise.", "kind": "symbol", "module": "global", "name": "all?", "signature": "quot1 quot2 ==> bool" }, "and": { "description": "Returns true if bool1 is equal to bool2, false otherwise.", "kind": "symbol", "module": "global", "name": "and", "signature": "bool1 bool2 ==> bool3" }, "any?": { "description": "Applies predicate quot2 to each element of quot1 and returns true if at least one element of quot1 satisfies predicate quot2, false otherwise.", "kind": "symbol", "module": "global", "name": "any?", "signature": "quot1 quot2 ==> bool" }, "append": { "description": "Returns a new quotation containing the contents of quot with a appended.", "kind": "symbol", "module": "global", "name": "append", "signature": "a quot ==> (a* a)" }, "apply": { "description": "Returns a new quotation obtained by evaluating each element of quot in a separate stack.", "kind": "symbol", "module": "global", "name": "apply", "signature": "quot ==> (a*)" }, "apply-interpolate": { "description": "The same as pushing apply and then interpolate on the stack.", "kind": "symbol", "module": "global", "name": "apply-interpolate", "signature": "str quot ==> str" }, "args": { "description": "Returns a list of all arguments passed to the current program.", "kind": "symbol", "module": "global", "name": "args", "signature": " ==> quot" }, "avg": { "description": "Returns the average of the items of quot.", "kind": "symbol", "module": "global", "name": "avg", "signature": "quot ==> num" }, "base": { "description": "Sets the numeric base used to represent integers.", "kind": "symbol", "module": "global", "name": "base", "signature": "\"dec\"|\"hex\"|\"oct\"|\"bin\" ==> " }, "base?": { "description": "Returns the numeric base currently used to represent integers (default: ["dec"](class:kwd)).", "kind": "symbol", "module": "global", "name": "base?", "signature": " ==> \"dec\"|\"hex\"|\"oct\"|\"bin\"" }, "bind": { "description": "Binds the specified value (auto-quoted) to an existing symbol 'sym.", "kind": "symbol", "module": "global", "name": "bind", "signature": "a 'sym ==> " }, "bitand": { "description": "Computes the bitwise *and* of integer int1 and int2.", "kind": "symbol", "module": "global", "name": "bitand", "signature": "int1 int2 ==> int3" }, "bitclear": { "description": "Sets the bytes specified via their position in int1 through quot to 0.", "kind": "symbol", "module": "global", "name": "bitclear", "signature": "int1 quot ==> int2" }, "bitflip": { "description": "Flips the bytes specified via their position in int1 through quot.", "kind": "symbol", "module": "global", "name": "bitflip", "signature": "int1 quot ==> int2" }, "bitnot": { "description": "Computes the bitwise *complement* of int1.", "kind": "symbol", "module": "global", "name": "bitnot", "signature": "int1 ==> int2" }, "bitor": { "description": "Computes the bitwise *or* of integers int1 and int2.", "kind": "symbol", "module": "global", "name": "bitor", "signature": "int1 int2 ==> int3" }, "bitparity": { "description": "Calculate the bit parity in int1. If the number of 1-bits is odd, the parity is 1, otherwise 0.", "kind": "symbol", "module": "global", "name": "bitparity", "signature": "int1 ==> int2" }, "bitset": { "description": "Sets the bytes specified via their position in int1 through quot to 0.", "kind": "symbol", "module": "global", "name": "bitset", "signature": "int1 quot ==> int2" }, "bitxor": { "description": "Computes the bitwise *xor* of integers int1 and int2.", "kind": "symbol", "module": "global", "name": "bitxor", "signature": "int1 int2 ==> int3" }, "boolean": { "description": "Converts a to a boolean value based on the following rules:\r\n \r\n * If a is a boolean value, no conversion is performed.\r\n * If a is null, it is converted to false .\r\n * If a is a numeric value, zero is converted to false , otherwise it is converted to true.\r\n * If a is a quotation or a dictionary, the empty quotation or dictionary is converted to false , otherwise it is converted to true.\r\n * If a is a string, the empty string, and \"false\" are converted to false , otherwise it is converted to true.", "kind": "symbol", "module": "global", "name": "boolean", "signature": "a ==> bool" }, "boolean?": { "description": "Returns true if a is a boolean, false otherwise.", "kind": "symbol", "module": "global", "name": "boolean?", "signature": "a ==> bool" }, "capitalize": { "description": "Returns a copy of 'sym with the first character capitalized.", "kind": "symbol", "module": "global", "name": "capitalize", "signature": "'sym ==> str" }, "case": { "description": "This operator takes a quotation containing _n_ different conditional branches. \r\n \r\n Each branch must be a quotation containing two quotations, and it is processed as follows:\r\n \r\n * if quot1 evaluates to true, then the quot2 is executed.\r\n * if quot1 evaluates to false , then the following branch is processed (if any).\r\n \r\n \r\n Example\r\n \r\n The following program prints \"Smaller than 3\":\r\n \r\n (\r\n ((2 3) (\"Greater than 3\" put!))\r\n ((2 < 3) (\"Smaller than 3\" put!))\r\n ((true) (\"Exactly 3\" put!))\r\n ) case", "kind": "symbol", "module": "global", "name": "case", "signature": "((quot1 quot2)*) ==> a*" }, "chr": { "description": "Returns the single character str obtained by interpreting int as an ASCII code.", "kind": "symbol", "module": "global", "name": "chr", "signature": "int ==> str" }, "compiled?": { "description": "Returns true if the current program has been compiled.", "kind": "symbol", "module": "global", "name": "compiled?", "signature": " ==> bool" }, "concat": { "description": "Concatenates quot1 with quot2.", "kind": "symbol", "module": "global", "name": "concat", "signature": "quot1 quot2 ==> quot3" }, "constructor": { "description": "Symbol used to define a constructor when using the operator symbol.", "kind": "symbol", "module": "global", "name": "constructor", "signature": " ==> " }, "crypto.aes": { "description": "Encrypts or decrypts 'sym1 using the Advanced Encryption Standard (AES) in CTR mode, using 'sym2 as password.", "kind": "symbol", "module": "crypto", "name": "aes", "signature": "'sym1 'sym2 ==> str" }, "crypto.decode": { "description": "Decodes the Base64-encoded string 'sym.", "kind": "symbol", "module": "crypto", "name": "decode", "signature": "'sym ==> str" }, "crypto.encode": { "description": "Base64-encodes 'sym.", "kind": "symbol", "module": "crypto", "name": "encode", "signature": "'sym ==> str" }, "crypto.md4": { "description": "Returns the MD4 hash of 'sym.", "kind": "symbol", "module": "crypto", "name": "md4", "signature": "'sym ==> str" }, "crypto.md5": { "description": "Returns the MD5 hash of 'sym.", "kind": "symbol", "module": "crypto", "name": "md5", "signature": "'sym ==> str" }, "crypto.sha1": { "description": "Returns the SHA1 hash of 'sym.", "kind": "symbol", "module": "crypto", "name": "sha1", "signature": "'sym ==> str" }, "crypto.sha224": { "description": "Returns the SHA224 hash of 'sym.", "kind": "symbol", "module": "crypto", "name": "sha224", "signature": "'sym ==> str" }, "crypto.sha256": { "description": "Returns the SHA256 hash of 'sym.", "kind": "symbol", "module": "crypto", "name": "sha256", "signature": "'sym ==> str" }, "crypto.sha384": { "description": "Returns the SHA384 hash of 'sym.", "kind": "symbol", "module": "crypto", "name": "sha384", "signature": "'sym ==> str" }, "crypto.sha512": { "description": "Returns the SHA512 hash of 'sym.", "kind": "symbol", "module": "crypto", "name": "sha512", "signature": "'sym ==> str" }, "decode-url": { "description": "URL-decodes 'sym, deconding all URL-encoded characters.", "kind": "symbol", "module": "global", "name": "decode-url", "signature": "'sym ==> str" }, "define": { "description": "Defines a new symbol 'sym, containing the specified value.", "kind": "symbol", "module": "global", "name": "define", "signature": "a 'sym ==> " }, "define-sigil": { "description": "Defines a new sigil 'sym, containing the specified value (auto-quoted if not already a quotation).", "kind": "symbol", "module": "global", "name": "define-sigil", "signature": "a 'sym ==> " }, "defined-sigil?": { "description": "Returns true if the symbol 'sym is defined, false otherwise.", "kind": "symbol", "module": "global", "name": "defined-sigil?", "signature": "'sym ==> bool" }, "defined-symbol?": { "description": "Returns true if the symbol 'sym is defined, false otherwise.", "kind": "symbol", "module": "global", "name": "defined-symbol?", "signature": "'sym ==> bool" }, "delete-sigil": { "description": "Deletes the specified user-defined sigil 'sym.", "kind": "symbol", "module": "global", "name": "delete-sigil", "signature": "'sym ==> " }, "delete-symbol": { "description": "Deletes the specified symbol 'sym.", "kind": "symbol", "module": "global", "name": "delete-symbol", "signature": "'sym ==> " }, "dequote": { "description": "Pushes the contents of quotation quot on the stack.\r\n\r\n Each element is pushed on the stack one by one. If any error occurs, quot is restored on the stack.", "kind": "symbol", "module": "global", "name": "dequote", "signature": "quot ==> a*" }, "dev": { "description": "Toggles development mode.", "kind": "symbol", "module": "global", "name": "dev", "signature": " ==> " }, "dev?": { "description": "Returns true if the current program is being executed in development mode.", "kind": "symbol", "module": "global", "name": "dev?", "signature": " ==> bool" }, "dict.del": { "description": "Removes 'sym from dict1 and returns dict1.", "kind": "symbol", "module": "dict", "name": "del", "signature": "dict 'sym ==> dict" }, "dict.dup": { "description": "Returns a copy of dict1.", "kind": "symbol", "module": "dict", "name": "dup", "signature": "dict1 ==> dict2" }, "dict.get": { "description": "Returns the value of key 'sym from dictionary dict.", "kind": "symbol", "module": "dict", "name": "get", "signature": "dict 'sym ==> a" }, "dict.get-raw": { "description": "Returns the value of key 'sym from dictionary dict, wrapped in a dict:rawval.", "kind": "symbol", "module": "dict", "name": "get-raw", "signature": "dict 'sym ==> dict:rawval" }, "dict.has?": { "description": "Returns true if dictionary dict contains the key 'sym, false otherwise.\r\n \r\n \r\n Example\r\n \r\n The following program returns true:\r\n \r\n {true :a1 \"aaa\" :a2 false :a3} 'a2 dict.has?", "kind": "symbol", "module": "dict", "name": "has?", "signature": "dict 'sym ==> bool" }, "dict.keys": { "description": "Returns a quotation containing all the keys of dictionary dict.", "kind": "symbol", "module": "dict", "name": "keys", "signature": "dict ==> (str*)" }, "dict.pairs": { "description": "Returns a quotation containing a quotation for each value/key pair (value first, key second) of dictionary dict. \r\n \r\n \r\n Example\r\n\r\n A The following program returns ((1 \"a\") (2 \"b\")):\r\n {1 :a 2 :b} dict.pairs", "kind": "symbol", "module": "dict", "name": "pairs", "signature": "dict ==> (a*)" }, "dict.pick": { "description": "Returns a new dictionary dict2 containing the elements of dict1 whose keys are included in quot.\r\n \r\n \r\n Example\r\n \r\n The following program returns {4 :a 7 :d}:\r\n \r\n {5 :q 4 :a 6 :c 7 :d \"d\" :a} (\"a\" \"d\") dict.pick", "kind": "symbol", "module": "dict", "name": "pick", "signature": "dict1 quot ==> dict2" }, "dict.set": { "description": "Sets the value of the 'sym of dict1 to a, and returns the modified dictionary dict.", "kind": "symbol", "module": "dict", "name": "set", "signature": "dict a 'sym ==> dict" }, "dict.set-sym": { "description": "Sets the value of the 'sym of dict1 to 'sym (treating it as a symbol), and returns the modified dictionary dict.", "kind": "symbol", "module": "dict", "name": "set-sym", "signature": "dict 'sym 'sym ==> dict" }, "dict.type": { "description": "Returns a string set to the type of dict (empty if the dictionary has no type).", "kind": "symbol", "module": "dict", "name": "type", "signature": "dict ==> str" }, "dict.values": { "description": "Returns a quotation containing all the values of dictionary dict.", "kind": "symbol", "module": "dict", "name": "values", "signature": "dict ==> (a*)" }, "dictionary?": { "description": "Returns true if a is a dictionary, false otherwise.", "kind": "symbol", "module": "global", "name": "dictionary?", "signature": "a ==> bool" }, "difference": { "description": "Calculates the difference quot3 of quot1 and quot2.\r\n\r\n \r\n Example\r\n \r\n The following program leaves (2) on the stack:\r\n \r\n (1 2 \"test\") (\"test\" \"a\" true 1) difference", "kind": "symbol", "module": "global", "name": "difference", "signature": "quot1 quot2 ==> quot3" }, "div": { "description": "Divides int1 by int2 (integer division).", "kind": "symbol", "module": "global", "name": "div", "signature": "int1 int2 ==> int3" }, "drop": { "description": "Returns a quotation quot2 containing the remaining elements after the first _n_ values of the input quotation quot1, or an empty quotation if int is greater than the length of quot1.", "kind": "symbol", "module": "global", "name": "drop", "signature": "quot1 int ==> quot2" }, "encode-url": { "description": "URL-encodes 'sym, encoding all special characters into URL-encoded characters.", "kind": "symbol", "module": "global", "name": "encode-url", "signature": "'sym ==> str" }, "escape": { "description": "Returns a copy of 'sym with quotes and backslashes escaped with a backslash.", "kind": "symbol", "module": "global", "name": "escape", "signature": "'sym ==> str" }, "eval": { "description": "Parses and interprets str.", "kind": "symbol", "module": "global", "name": "eval", "signature": "str ==> a*" }, "even?": { "description": "Returns true if int is even, false otherwise.", "kind": "symbol", "module": "global", "name": "even?", "signature": "int ==> bool" }, "exit": { "description": "Exits the program or shell with int as return code.", "kind": "symbol", "module": "global", "name": "exit", "signature": "int ==> " }, "expect": { "description": "If the -d (--dev) flag is specified when running the program, validates the first _n_ elements of the stack against the type descriptions specified in quot1 (_n_ is quot1's length) and if all the elements are valid returns them wrapped in quot2 (in reverse order). If the -d (--dev) flag is not specified when running the program, no validation is performed and all elements are just returned in a quotation in reverse order. \r\n\r\n \r\n Tips\r\n \r\n * You can specify a typed dictionary by prepending the type name with dict:. Example: dict:socket\r\n * You can specify two or more matching types by separating combined together in a logical type expression, e.g.: string|quot\r\n\r\n \r\n Example\r\n \r\n Assuming that the following elements are on the stack (from top to bottom): \r\n \r\n 1 \"test\" 3.4\r\n \r\n the following program evaluates to true:\r\n \r\n (int string num) expect (3.4 \"test\" 1) ==", "kind": "symbol", "module": "global", "name": "expect", "signature": "quot1 ==> quot2" }, "expect-all": { "description": "Assuming that quot is a quotation of quotations each evaluating to a boolean value, it pushes true on the stack if they all evaluate to true, false otherwise.", "kind": "symbol", "module": "global", "name": "expect-all", "signature": "quot ==> bool" }, "expect-any": { "description": "Assuming that quot is a quotation of quotations each evaluating to a boolean value, it pushes true on the stack if any evaluates to true, false otherwise.", "kind": "symbol", "module": "global", "name": "expect-any", "signature": "quot ==> bool" }, "expect-empty-stack": { "description": "Raises an error if the stack is not empty.", "kind": "symbol", "module": "global", "name": "expect-empty-stack", "signature": " ==> " }, "filter": { "description": "Returns a new quotation quot3 containing all elements of quot1 that satisfy predicate quot2.\r\n \r\n \r\n Example\r\n \r\n The following program leaves (2 6 8 12) on the stack:\r\n \r\n (1 37 34 2 6 8 12 21) \r\n (stackdup 20 < stack.swap even? and) filter", "kind": "symbol", "module": "global", "name": "filter", "signature": "quot1 quot2 ==> quot3" }, "find": { "description": "Returns the index of the first element within quot1 that satisfies predicate quot2, or -1 if no element satisfies it.\r\n \r\n \r\n Example\r\n \r\n The following program leaves 3 on the stack:\r\n \r\n (1 2 4 8 16) \r\n (5 ) find", "kind": "symbol", "module": "global", "name": "find", "signature": "quot1 quot2 ==> int" }, "first": { "description": "Returns the first element of quot.", "kind": "symbol", "module": "global", "name": "first", "signature": "quot ==> a" }, "flatten": { "description": "Flattens all quotations within quot1 and returns the resulting sequence quot2.\r\n \r\n \r\n Example\r\n \r\n The following program leaves (1 2 3 4 5 6 7 8) on the stack:\r\n \r\n (1 (2 3 4) 5 (6 7) 8) \r\n flatten", "kind": "symbol", "module": "global", "name": "flatten", "signature": "quot1 ==> quot2" }, "float": { "description": "Converts a to a float value based on the following rules:\r\n \r\n * If a is true, it is converted to 1.0.\r\n * If a is false , it is converted to 0.0.\r\n * If a is null, it is converted to 0.0.\r\n * If a is a integer, it is converted to float value.\r\n * If a is a float, no conversion is performed.\r\n * If a is a string, it is parsed as a float value.", "kind": "symbol", "module": "global", "name": "float", "signature": "a ==> flt" }, "float?": { "description": "Returns true if a is a float, false otherwise.", "kind": "symbol", "module": "global", "name": "float?", "signature": "a ==> bool" }, "foreach": { "description": "Applies the quotation quot2 to each element of quot1.", "kind": "symbol", "module": "global", "name": "foreach", "signature": "quot1 quot2 ==> a*" }, "format-error": { "description": "Formats the error dict:error as a string. \r\n \r\n Example\r\n \r\n The following code: \r\n \r\n (\r\n (\r\n {\"MyError\" :error \"This is a test error\" :message} raise\r\n ) \r\n (format-error)\r\n ) try\r\n \r\n produces: \"This is a test error\"", "kind": "symbol", "module": "global", "name": "format-error", "signature": "dict:error ==> str" }, "from-bin": { "description": "Parses 'sym as a binary number.", "kind": "symbol", "module": "global", "name": "from-bin", "signature": "'sym ==> int" }, "from-dec": { "description": "Parses 'sym as a decimal number.", "kind": "symbol", "module": "global", "name": "from-dec", "signature": "'sym ==> int" }, "from-hex": { "description": "Parses 'sym as a hexadecimal number.", "kind": "symbol", "module": "global", "name": "from-hex", "signature": "'sym ==> int" }, "from-json": { "description": "Converts a JSON string into min data.", "kind": "symbol", "module": "global", "name": "from-json", "signature": "str ==> a" }, "from-oct": { "description": "Parses 'sym as a octal number.", "kind": "symbol", "module": "global", "name": "from-oct", "signature": "'sym ==> int" }, "from-semver": { "description": "Given a basic [SemVer](https://semver.org)-compliant string (with no additional labels) str, \r\nit pushes a dictionary dict on the stack containing a **major**, **minor**, and **patch** key/value pairs.", "kind": "symbol", "module": "global", "name": "from-semver", "signature": "str ==> dict" }, "from-yaml": { "description": "Converts a YAML string into min data.\r\n \r\n Note\r\n \r\n At present, only YAML objects containing string values are supported.", "kind": "symbol", "module": "global", "name": "from-yaml", "signature": "str ==> a" }, "fs.absolute-path": { "description": "Returns the absolute path to 'sym.", "kind": "symbol", "module": "fs", "name": "absolute-path", "signature": "'sym ==> str" }, "fs.absolute-path?": { "description": "Returns true if 'sym is an absolute path.", "kind": "symbol", "module": "fs", "name": "absolute-path?", "signature": "'sym ==> bool" }, "fs.append": { "description": "Appends str1 to the end of file str2.", "kind": "symbol", "module": "fs", "name": "append", "signature": "str1 str2 ==> " }, "fs.atime": { "description": "Returns a timestamp corresponding to the time that file/directory 'sym was last accessed.", "kind": "symbol", "module": "fs", "name": "atime", "signature": "'sym ==> flt" }, "fs.ctime": { "description": "Returns a timestamp corresponding to the time that file/directory 'sym was created.", "kind": "symbol", "module": "fs", "name": "ctime", "signature": "'sym ==> flt" }, "fs.dir?": { "description": "Returns true if the specified path 'sym exists and is a directory.", "kind": "symbol", "module": "fs", "name": "dir?", "signature": "'sym ==> bool" }, "fs.dirname": { "description": "Returns the path of the directory containing path 'sym.", "kind": "symbol", "module": "fs", "name": "dirname", "signature": "'sym ==> str" }, "fs.exists?": { "description": "Returns true if the specified file or directory 'sym exists.", "kind": "symbol", "module": "fs", "name": "exists?", "signature": "'sym ==> bool" }, "fs.expand-filename": { "description": "Returns the absolute path to the file name 'sym.", "kind": "symbol", "module": "fs", "name": "expand-filename", "signature": "'sym ==> str" }, "fs.expand-symlink": { "description": "Returns the absolute path to the symlink 'sym (an error is raised if 'sym is not a symlink).", "kind": "symbol", "module": "fs", "name": "expand-symlink", "signature": "'sym ==> str" }, "fs.file?": { "description": "Returns true if the specified path 'sym exists and is a file.", "kind": "symbol", "module": "fs", "name": "file?", "signature": "'sym ==> bool" }, "fs.filename": { "description": "Returns the file name of path 'sym.", "kind": "symbol", "module": "fs", "name": "filename", "signature": "'sym ==> str" }, "fs.hidden?": { "description": "Returns true if file/directory 'sym is hidden, false otherwise.", "kind": "symbol", "module": "fs", "name": "hidden?", "signature": "'sym ==> bool" }, "fs.join-path": { "description": "Joins the strings contained in quot with /.", "kind": "symbol", "module": "fs", "name": "join-path", "signature": "quot ==> str" }, "fs.mtime": { "description": "Returns a timestamp corresponding to the time that file/directory 'sym was last modified.", "kind": "symbol", "module": "fs", "name": "mtime", "signature": "'sym ==> flt" }, "fs.normalized-path": { "description": "Returns the normalized path to 'sym.", "kind": "symbol", "module": "fs", "name": "normalized-path", "signature": "'sym ==> str" }, "fs.permissions": { "description": "Returns the Unix permissions (expressed as a three-digit number) of file/directory 'sym.", "kind": "symbol", "module": "fs", "name": "permissions", "signature": "'sym ==> int" }, "fs.read": { "description": "Reads the file str and puts its contents on the top of the stack as a string.", "kind": "symbol", "module": "fs", "name": "read", "signature": "str ==> str" }, "fs.relative-path": { "description": "Returns the path of 'sym1 relative to 'sym2.", "kind": "symbol", "module": "fs", "name": "relative-path", "signature": "'sym1 'sym2 ==> str" }, "fs.size": { "description": "Returns the size in bytes of file/directory 'sym.", "kind": "symbol", "module": "fs", "name": "size", "signature": "'sym ==> int" }, "fs.stats": { "description": "Returns a dictionary dict containing information on file/directory 'sym.\r\n \r\n Example\r\n \r\n Assuming that min is a file, the following:\r\n \r\n \"min\" fs.stats\r\n \r\n produces:\r\n \r\n {\r\n \"min\" :name\r\n 16777220 :device\r\n 50112479 :file\r\n \"file\" :type\r\n 617068 :size\r\n 755 :permissions\r\n 1 :nlinks\r\n 1496583112.0 :ctime\r\n 1496584370.0 :atime\r\n 1496583112.0 :mtime\r\n }", "kind": "symbol", "module": "fs", "name": "stats", "signature": "'sym ==> dict" }, "fs.symlink?": { "description": "Returns true if the specified path 'sym exists and is a symbolic link.", "kind": "symbol", "module": "fs", "name": "symlink?", "signature": "'sym ==> bool" }, "fs.type": { "description": "Returns the type of file/directory 'sym (\"file\" or \"dir\").", "kind": "symbol", "module": "fs", "name": "type", "signature": "'sym ==> str" }, "fs.unix-path": { "description": "Converts all backslashes in 'sym to slashes.", "kind": "symbol", "module": "fs", "name": "unix-path", "signature": "'sym ==> str" }, "fs.windows-path": { "description": "Converts all slashes in 'sym to backslashes.", "kind": "symbol", "module": "fs", "name": "windows-path", "signature": "'sym ==> str" }, "fs.write": { "description": "Writes str1 to the file str2, erasing all its contents first.", "kind": "symbol", "module": "fs", "name": "write", "signature": "str1 str2 ==> " }, "get": { "description": "Returns the _n^th_ element of quot (zero-based).", "kind": "symbol", "module": "global", "name": "get", "signature": "quot int ==> a" }, "get-env": { "description": "Returns environment variable 'sym.", "kind": "symbol", "module": "global", "name": "get-env", "signature": "'sym ==> str" }, "gets": { "description": "Reads a line from STDIN and places it on top of the stack as a string.", "kind": "symbol", "module": "global", "name": "gets", "signature": " ==> str" }, "harvest": { "description": "Creates a new quotation quot2 containing all elements of quot1 except for empty quotations.\r\n \r\n \r\n Example\r\n \r\n The following program leaves (1 2 3) on the stack:\r\n \r\n (1 () () () 2 () 3) \r\n harvest", "kind": "symbol", "module": "global", "name": "harvest", "signature": "quot1 ==> quot2" }, "help": { "description": "Prints the help text for 'sym, if available.", "kind": "symbol", "module": "global", "name": "help", "signature": "'sym ==> " }, "http.download": { "description": "Downloads the contents of URL str1 to the local file str2.", "kind": "symbol", "module": "http", "name": "download", "signature": "str1 str2 ==> " }, "http.get-content": { "description": "Retrieves the contents of URL str1 as str2.", "kind": "symbol", "module": "http", "name": "get-content", "signature": "str1 ==> str2" }, "http.request": { "description": "Performs an HTTP request. Note that dict is can be a standard (untyped) dictionary but its fields will be validated like if it was a dict:http-request.\r\n\r\n \r\n Example\r\n \r\n The following code constructs dict and passes it to the **request** operator to perform an HTTP GET request to <http://httpbin.org/ip:\r\n \r\n {}\r\n \"GET\" 'method dict.get\r\n \"http://httpbin.org/ip\" 'url dict.set\r\n request", "kind": "symbol", "module": "http", "name": "request", "signature": "dict ==> dict:http-response" }, "http.start-server": { "description": "Starts an HTTP server based on the configuration provided in dict.\r\n \r\n dict is a dictionary containing the following keys:\r\n \r\n address\r\n : The address to bind the server to (default: **127.0.0.1**).\r\n port\r\n : The port to bind the server to.\r\n handler\r\n : A quotation with the following signature, used to handle all incoming requests: [dict:http-request ⇒ dict:http-response](class:kwd)\r\n \r\n \r\n Example\r\n \r\n The following program starts a very simple HTTP server that can display the current timestamp or date and time in ISO 8601 format:\r\n \r\n ; Define the request handler\r\n (\r\n ; Assume there is a request on the stack, take it off and give it the name req\r\n :req\r\n ; Let's see what we got (print req to standard out)\r\n \"THE REQUEST:\" puts! req puts!\r\n ; The request is a dictionary, we retrieve the value for the key url, and give it the name url\r\n req /url :url\r\n \"THE URL is '$1'.\" url quote ))\r\n ) case\r\n :body\r\n ; Prepare the response\r\n {} body 'body dict.set\r\n stack.dup puts!\r\n )\r\n ; The request handler is ready, give it the name handler\r\n :handler\r\n \r\n ; Create the parameter dictionary for the server\r\n {}\r\n handler 'handler dict.set\r\n 5555 'port dict.set\r\n \r\n ; Start server\r\n \"Server started on port 5555.\" puts!\r\n \"Press Ctrl+C to stop.\" puts!\r\n start-server", "kind": "symbol", "module": "http", "name": "start-server", "signature": "dict ==> " }, "http.stop-server": { "description": "Stops the currently-running HTTP server. This operator should be used within an HTTP server handler quotation.", "kind": "symbol", "module": "http", "name": "stop-server", "signature": " ==> " }, "if": { "description": "If quot1 evaluates to true then evaluates quot2, otherwise evaluates quot3.", "kind": "symbol", "module": "global", "name": "if", "signature": "quot1 quot2 quot3 ==> a*" }, "import": { "description": "Imports the a previously-loaded module 'sym, defining all its symbols in the current scope.", "kind": "symbol", "module": "global", "name": "import", "signature": "'sym ==> " }, "in?": { "description": "Returns true if a is contained in quot, false otherwise.", "kind": "symbol", "module": "global", "name": "in?", "signature": "quot a ==> bool" }, "indent": { "description": "Returns str containing 'sym indented with int spaces.", "kind": "symbol", "module": "global", "name": "indent", "signature": "'sym int ==> str" }, "indexof": { "description": "If str2 is contained in str1, returns the index of the first match or -1 if no match is found.", "kind": "symbol", "module": "global", "name": "indexof", "signature": "str1 str2 ==> int" }, "inf": { "description": "Returns infinity.", "kind": "symbol", "module": "global", "name": "inf", "signature": " ==> num" }, "infix-dequote": { "description": "Dequotes quot using infix notation. \r\n \r\n Note that no special operator preference is defined, symbols precedence is always left-to-right. However, you can use parentheses (quotes) to evaluate expressions before others.\r\n \r\n \r\n Example\r\n \r\n The following program leaves 17 on the stack:\r\n\r\n (2 + (3 * 5)) infix-dequote\r\n\r\n while this program leaves 25 on the stack:\r\n \r\n (2 + 3 * 5) infix-dequote", "kind": "symbol", "module": "global", "name": "infix-dequote", "signature": "quot ==> a" }, "insert": { "description": "Inserts a as the value of the _n^th_ element quot1 (zero-based), and returns the modified copy of the quotation quot2.", "kind": "symbol", "module": "global", "name": "insert", "signature": "quot1 a int ==> quot2" }, "integer": { "description": "Converts a to an integer value based on the following rules:\r\n \r\n * If a is true, it is converted to 1.\r\n * If a is false , it is converted to 0.\r\n * If a is null, it is converted to 0.\r\n * If a is an integer, no conversion is performed.\r\n * If a is a float, it is converted to an integer value by truncating its decimal part.\r\n * If a is a string, it is parsed as an integer value.", "kind": "symbol", "module": "global", "name": "integer", "signature": "a ==> int" }, "integer?": { "description": "Returns true if a is an integer, false otherwise.", "kind": "symbol", "module": "global", "name": "integer?", "signature": "a ==> bool" }, "interpolate": { "description": "Substitutes the placeholders included in str with the values in quot.\r\n \r\n Notes\r\n \r\n * If quot contains symbols or quotations, they are not interpreted. To do so, call apply before interpolating or use apply-interpolate instead.\r\n * You can use the $# placeholder to indicate the next placeholder that has not been already referenced in the string.\r\n * You can use named placeholders like $pwd, but in this case quot must contain a quotation containing both the placeholder names (odd items) and the values (even items).\r\n \r\n \r\n Example\r\n \r\n The following code (executed in a directory called '/Users/h3rald/Development/min' containing 19 files):\r\n \r\n \"Directory '$1' includes $2 files.\" (sys.pwd (sys.pwd sys.ls 'fs.file? filter size)) apply interpolate\r\n \r\n produces:\r\n \r\n \"Directory '/Users/h3rald/Development/min' includes 19 files.\"", "kind": "symbol", "module": "global", "name": "interpolate", "signature": "str quot ==> str" }, "intersection": { "description": "Calculates the intersection quot3 of quot1 and quot2.\r\n\r\n \r\n Example\r\n \r\n The following program leaves (1 \"test\") on the stack:\r\n \r\n (1 2 \"test\") (\"test\" \"a\" true 1) intersection", "kind": "symbol", "module": "global", "name": "intersection", "signature": "quot1 quot2 ==> quot3" }, "io.ask": { "description": "Prints str1 (prompt), reads a line from STDIN and places it on top of the stack as a string.", "kind": "symbol", "module": "io", "name": "ask", "signature": "str1 ==> str2" }, "io.choose": { "description": "Prints str2, then prints all str1 included in the quotation prepended with a number, and waits from valid input from the user.\r\n \r\n If the user enters a number that matches one of the choices, then the corresponding quotation quot1 is executed, otherwise the choice menu is displayed again until a valid choice is made.", "kind": "symbol", "module": "io", "name": "choose", "signature": "((str1 quot1)+) str2 ==> a*" }, "io.clear": { "description": "Clears the screen.", "kind": "symbol", "module": "io", "name": "clear", "signature": " ==> " }, "io.color": { "description": "Enables or disabled color output in terminal (enabled by default).", "kind": "symbol", "module": "io", "name": "color", "signature": "bool ==> " }, "io.column-print": { "description": "Prints all elements of quot to STDOUT, in int columns.", "kind": "symbol", "module": "io", "name": "column-print", "signature": "quot int ==> a" }, "io.confirm": { "description": "Prints str (prompt) appending \" [yes/no]: \", reads a line from STDIN and:\r\n \r\n * if it matches /^y(es)?$/i, puts true on the stack.\r\n * if it matches /^no?$/i, puts false on the stack. \r\n * Otherwise, it prints Invalid answer. Please enter 'yes' or 'no': and waits for a new answer.", "kind": "symbol", "module": "io", "name": "confirm", "signature": "str ==> bool" }, "io.debug": { "description": "Prints a and a new line to STDOUT, if logging level is set to [debug](class:kwd) or lower.", "kind": "symbol", "module": "io", "name": "debug", "signature": "a ==> a" }, "io.error": { "description": "Prints a and a new line to STDERR, if logging level is set to [error](class:kwd) or lower.", "kind": "symbol", "module": "io", "name": "error", "signature": "a ==> a" }, "io.fatal": { "description": "Prints a and a new line to STDERR, and exists the program with error code 100.", "kind": "symbol", "module": "io", "name": "fatal", "signature": "a ==> a" }, "io.getchr": { "description": "Reads single character from STDIN without waiting for ENTER key and places its ASCII code on top of the stack.", "kind": "symbol", "module": "io", "name": "getchr", "signature": " ==> int" }, "io.info": { "description": "Prints a and a new line to STDOUT, if logging level is set to [info](class:kwd) or lower.", "kind": "symbol", "module": "io", "name": "info", "signature": "a ==> a" }, "io.mapkey": { "description": "Maps the named key/key combination 'sym to the quotation quot, so that quot is executed when key 'sym is pressed. \r\n\r\n \r\n Notes\r\n\r\n * At present, only the key names and sequences defined in the [minline](https://h3rald.com/minline/minline.html) library are supported.\r\n * The quotation will be executed by a copy of the min interpreter created when the mapping was defined. In other words, quotations executed by key bindings will not affect the current stack.\r\n \r\n \r\n Example\r\n \r\n The following program:\r\n \r\n (clear) 'ctrl+l io.mapkey \r\n \r\n causes the CTRL+L key to clear the screen.", "kind": "symbol", "module": "io", "name": "mapkey", "signature": "quot 'sym ==> " }, "io.notice": { "description": "Prints a and a new line to STDOUT, if logging level is set to [notice](class:kwd) (default) or lower.", "kind": "symbol", "module": "io", "name": "notice", "signature": "a ==> a" }, "io.password": { "description": "Reads a line from STDIN displaying \\* for each typed character, and places it on top of the stack as a string.", "kind": "symbol", "module": "io", "name": "password", "signature": " ==> str" }, "io.putchr": { "description": "Prints str to STDOUT without printing a new line (str must contain only one character).", "kind": "symbol", "module": "io", "name": "putchr", "signature": "str ==> a" }, "io.unmapkey": { "description": "Unmaps a previously-mapped key or key-combination 'sym, restoring the default mapping if available.\r\n\r\n \r\n Notes\r\n\r\n * At present, only the key names and sequences defined in the [minline](https://h3rald.com/minline/minline.html) library are supported.\r\n * At present, all the default mappings of min are those provided by the [minline](https://h3rald.com/minline/minline.html) library.", "kind": "symbol", "module": "io", "name": "unmapkey", "signature": "'sym ==> " }, "io.warn": { "description": "Prints a and a new line to STDERR, if logging level is set to [warn](class:kwd) or lower.", "kind": "symbol", "module": "io", "name": "warn", "signature": "a ==> a" }, "join": { "description": "Joins the elements of quot using separator 'sym, producing str.", "kind": "symbol", "module": "global", "name": "join", "signature": "quot 'sym ==> str" }, "lambda": { "description": "Defines a new symbol 'sym, containing the specified quotation quot. Unlike with define, in this case quot will not be quoted, so its values will be pushed on the stack when the symbol 'sym is pushed on the stack.\r\n \r\n Essentially, this symbol allows you to define an operator without any validation of constraints and bind it to a symbol.", "kind": "symbol", "module": "global", "name": "lambda", "signature": "quot 'sym ==> " }, "lambda-bind": { "description": "Binds the specified quotation to an existing symbol 'sym which was previously-set via lambda.", "kind": "symbol", "module": "global", "name": "lambda-bind", "signature": "quot 'sym ==> " }, "last": { "description": "Returns the last element of quot.", "kind": "symbol", "module": "global", "name": "last", "signature": "quot ==> a" }, "length": { "description": "Returns the length of 'sym.", "kind": "symbol", "module": "global", "name": "length", "signature": "'sym ==> int" }, "line-info": { "description": "Returns a dictionary dict containing a **filename**, **line**, and **column** properties identifying the filename, line and column of the current symbol.", "kind": "symbol", "module": "global", "name": "line-info", "signature": " ==> dict" }, "linrec": { "description": "Implements linear recursions as follows:\r\n \r\n 1. Evaluates quot1.\r\n * If quot1 evaluates to true, then it evaluates quot2.\r\n * Otherwises it executes quot3 and recurses using the same four quotations.\r\n 2. Finally, it executes quot4.\r\n \r\n \r\n Example\r\n \r\n The following program leaves 120 on the stack, the factorial of 5:\r\n \r\n 5 (dup 0 ==) 'succ (dup pred) '* linrec", "kind": "symbol", "module": "global", "name": "linrec", "signature": "quot1 quot2 quot3 quot4 ==> a*" }, "load": { "description": "Parses and interprets the specified min file 'sym, adding [.min](class:ext) if not specified.", "kind": "symbol", "module": "global", "name": "load", "signature": "'sym ==> a*" }, "load-symbol": { "description": "Loads the contents of symbol 'sym from the [.min\\_symbols](class:file) file.", "kind": "symbol", "module": "global", "name": "load-symbol", "signature": "'sym ==> a*" }, "loglevel": { "description": "Sets the current logging level to 'sym. 'sym must be one of the following strings or quoted symbols:\r\n \r\n * debug\r\n * info\r\n * notice\r\n * warn\r\n * error\r\n * fatal\r\n \r\n \r\n Note\r\n \r\n The default logging level is _notice_.", "kind": "symbol", "module": "global", "name": "loglevel", "signature": "'sym ==> " }, "loglevel?": { "description": "Returns the current log level (debug, info, notice, warn, error or fatal).", "kind": "symbol", "module": "global", "name": "loglevel?", "signature": " ==> str" }, "lowercase": { "description": "Returns a copy of 'sym converted to lowercase.", "kind": "symbol", "module": "global", "name": "lowercase", "signature": "'sym ==> str" }, "map": { "description": "Returns a new quotation quot3 obtained by applying quot2 to each element of quot1.", "kind": "symbol", "module": "global", "name": "map", "signature": "quot1 quot2 ==> quot3" }, "map-reduce": { "description": "Applies quot2 (map) to each element of quot1 and then applies quot3 (reduce) to each successive element of quot1. quot1 must have at least one element.\r\n \r\n \r\n Example\r\n \r\n The following program leaves 35 on the stack:\r\n \r\n (1 3 5) \r\n (stack.dup *) (+) map-reduce", "kind": "symbol", "module": "global", "name": "map-reduce", "signature": "quot1 quot2 quot3 ==> int" }, "match?": { "description": "Returns true if str2 matches str1, false otherwise.\r\n \r\n Tip\r\n \r\n str2 is a Perl-compatible regular expression", "kind": "symbol", "module": "global", "name": "match?", "signature": "str1 str2 ==> bool" }, "math.abs": { "description": "Calculates tbe absolute value of num1.", "kind": "symbol", "module": "math", "name": "abs", "signature": "num1 ==> num2" }, "math.acos": { "description": "Calculates the arc cosine of num1 (in radians).", "kind": "symbol", "module": "math", "name": "acos", "signature": "num1 ==> num2" }, "math.asin": { "description": "Calculates the arc sine of num1 (in radians).", "kind": "symbol", "module": "math", "name": "asin", "signature": "num1 ==> num2" }, "math.atan": { "description": "Calculates the arc tangent of num1 (in radians).", "kind": "symbol", "module": "math", "name": "atan", "signature": "num1 ==> num2" }, "math.ceil": { "description": "Returns the smallest integer int that is not smaller than num.", "kind": "symbol", "module": "math", "name": "ceil", "signature": "num ==> int" }, "math.cos": { "description": "Calculates the cosine of num1 (in radians).", "kind": "symbol", "module": "math", "name": "cos", "signature": "num1 ==> num2" }, "math.cosh": { "description": "Calculates the hyperbolic cosine of num1 (in radians).", "kind": "symbol", "module": "math", "name": "cosh", "signature": "num1 ==> num2" }, "math.d2r": { "description": "Converts num1 from degrees to radians.", "kind": "symbol", "module": "math", "name": "d2r", "signature": "num1 ==> num2" }, "math.e": { "description": "Returns the value of the _e_ constant (Euler's number).", "kind": "symbol", "module": "math", "name": "e", "signature": " ==> num" }, "math.floor": { "description": "Returns the largest integer int that is not greater than num.", "kind": "symbol", "module": "math", "name": "floor", "signature": "num ==> int" }, "math.ln": { "description": "Calculates the natural logarithm of num1.", "kind": "symbol", "module": "math", "name": "ln", "signature": "num1 ==> num2" }, "math.log10": { "description": "Calculates the common logarithm of num1.", "kind": "symbol", "module": "math", "name": "log10", "signature": "num1 ==> num2" }, "math.log2": { "description": "Calculates the binary logarithm of num1.", "kind": "symbol", "module": "math", "name": "log2", "signature": "num1 ==> num2" }, "math.pi": { "description": "Returns the value of the π constant.", "kind": "symbol", "module": "math", "name": "pi", "signature": " ==> num" }, "math.pow": { "description": "Computes num1 to power raised of num2.", "kind": "symbol", "module": "math", "name": "pow", "signature": "num1 num2 ==> num3" }, "math.r2d": { "description": "Converts num1 from radians to degrees.", "kind": "symbol", "module": "math", "name": "r2d", "signature": "num1 ==> num2" }, "math.round": { "description": "Rounds num1 to the int^th decimal place.", "kind": "symbol", "module": "math", "name": "round", "signature": "num1 int ==> num2" }, "math.sin": { "description": "Calculates the sine of num1 (in radians).", "kind": "symbol", "module": "math", "name": "sin", "signature": "num1 ==> num2" }, "math.sinh": { "description": "Calculates the hyperbolic sine of num1 (in radians).", "kind": "symbol", "module": "math", "name": "sinh", "signature": "num1 ==> num2" }, "math.sqrt": { "description": "Returns square root of num1.", "kind": "symbol", "module": "math", "name": "sqrt", "signature": "num1 ==> num2" }, "math.tan": { "description": "Calculates the tangent of num1 (in radians).", "kind": "symbol", "module": "math", "name": "tan", "signature": "num1 ==> num2" }, "math.tanh": { "description": "Calculates the hyperbolic tangent of num1 (in radians).", "kind": "symbol", "module": "math", "name": "tanh", "signature": "num1 ==> num2" }, "math.tau": { "description": "Returns the value of the τ constant (2π).", "kind": "symbol", "module": "math", "name": "tau", "signature": " ==> num" }, "math.trunc": { "description": "Truncates num to the decimal point.", "kind": "symbol", "module": "math", "name": "trunc", "signature": "num1 ==> num2" }, "med": { "description": "Returns the median of the items of quot.", "kind": "symbol", "module": "global", "name": "med", "signature": "quot ==> num" }, "mod": { "description": "Returns the integer module of int1 divided by int2.", "kind": "symbol", "module": "global", "name": "mod", "signature": "int1 int2 ==> int3" }, "nan": { "description": "Returns **NaN** (not a number).", "kind": "symbol", "module": "global", "name": "nan", "signature": " ==> nan" }, "net.accept": { "description": "Makes dict:socket2 (server) accept a connection from dict:socket1 (client). Returns the client socket dict:socket1 from which it will be possible to receive data from.", "kind": "symbol", "module": "net", "name": "accept", "signature": "dict:socket1 dict:socket2 ==> dict:socket1" }, "net.close": { "description": "Closes a previously-opened socket.", "kind": "symbol", "module": "net", "name": "close", "signature": "dict:socket ==> " }, "net.connect": { "description": "Connects socket dict:socket to address str and port int.\r\n \r\n \r\n Example\r\n \r\n The following code shows how to send a message to a server running on localhost:7777. The message is passed as the first argument to the program.\r\n \r\n {} net.socket \"localhost\" 7777 net.connect :cli\r\n \r\n args 1 get :msg\r\n \r\n \"Sending message \\\"$1\\\" to localhost:7777...\" (msg) = net.send\r\n \r\n \"Done.\" puts!\r\n \r\n cli net.close", "kind": "symbol", "module": "net", "name": "connect", "signature": "dict:socket str int ==> dict:socket" }, "net.listen": { "description": "Makes socket dict:socket1 listen to the specified address and port. dict can be empty or contain any of the following properties, used to specify the address and port to listen to respectively.\r\n \r\n address\r\n : The address to listen to (default: **0.0.0.0**).\r\n port\r\n : The port to listen to (default: **80**).\r\n \r\n \r\n Example\r\n \r\n The following code shows how to create a simple server that listens on port 7777, prints data received from clients, and exits when it receives the string exit:\r\n \r\n {} net.socket {\"127.0.0.1\" :address 7777 :port} net.listen :srv\r\n \r\n \"Server listening on localhost:7777\" puts!\r\n \r\n {} net.socket :cli\r\n \"\" :line\r\n (line \"exit\" !=)\r\n (\r\n srv cli net.accept #cli\r\n cli net.recv-line @line\r\n \"Received: $1\" (line) = % puts!\r\n ) while\r\n \r\n \"Exiting...\" puts!\r\n \r\n srv net.close", "kind": "symbol", "module": "net", "name": "listen", "signature": "dict dict:socket1 ==> dict:socket2" }, "net.recv": { "description": "Waits to receive int characters from dict:socket and returns the resulting data str.", "kind": "symbol", "module": "net", "name": "recv", "signature": "dict:socket int ==> str" }, "net.recv-line": { "description": "Waits to receive a line of data from dict:socket and returns the resulting data str. \"\" is returned if dict:socket is disconnected.\r\n \r\n \r\n Example\r\n \r\n The following code shows how to make a simple GET request to <http://httpbin.org/uuid to receive a random UUID and display its response:\r\n \r\n \r\n {} net.socket \"httpbin.org\" 80 net.connect :cli\r\n \r\n cli \"GET /uuid HTTP/1.1\\r\\nHost: httpbin.org\\r\\n\\r\\n\" net.send\r\n \r\n cli net.recv-line puts :line\r\n (line \"\\}\" match not) \r\n (\r\n cli net.recv-line puts @line\r\n ) while", "kind": "symbol", "module": "net", "name": "recv-line", "signature": "dict:socket ==> str" }, "net.send": { "description": "Sends str to the connected socket dict:socket.", "kind": "symbol", "module": "net", "name": "send", "signature": "dict:socket str ==> " }, "net.socket": { "description": "Opens a new socket.\r\n \r\n dict can be empty or contain any of the following properties, used to specify the domain, type and protocol of the socket respectively.\r\n \r\n domain\r\n : The socket domain. It can be set to one of the following values:\r\n \r\n * **ipv4** (default): Internet Protocol version 4.\r\n * **ipv6**: Internet Protocol version 6.\r\n * **unix**: local Unix file (not supported on Windows systems).\r\n type\r\n : The socket type. It can be set to one of the following values:\r\n \r\n * **stream** (default): Reliable stream-oriented service or Stream Socket.\r\n * **dgram**: Datagram service or Datagram Socket.\r\n * **raw**: Raw protocols atop the network layer.\r\n * **seqpacket**: Reliable sequenced packet service.\r\n protocol\r\n : The socket protocol. It can be set to one of the following values:\r\n \r\n * **tcp** (default): Transmission Control Protocol.\r\n * **udp**: User Datagram Protocol.\r\n * **ipv4**: Internet Protocol version 4 (not supported on Windows systems).\r\n * **ipv6**: Internet Protocol version 6 (not supported on Windows systems).\r\n * **raw**: Raw IP Packets protocol (not supported on Windows systems).\r\n * **icmp**: Internet Control Message Protocol (not supported on Windows systems).", "kind": "symbol", "module": "net", "name": "socket", "signature": "dict ==> dict:socket" }, "not": { "description": "Negates bool1.", "kind": "symbol", "module": "global", "name": "not", "signature": "bool1 ==> bool2" }, "null?": { "description": "Returns true if a is null, false otherwise.", "kind": "symbol", "module": "global", "name": "null?", "signature": "a ==> bool" }, "number?": { "description": "Returns true if a is a number, false otherwise.", "kind": "symbol", "module": "global", "name": "number?", "signature": "a ==> bool" }, "odd?": { "description": "Returns true if int is odd, false otherwise.", "kind": "symbol", "module": "global", "name": "odd?", "signature": "int ==> bool" }, "one?": { "description": "Applies predicate quot2 to each element of quot1 and returns true if only one element of quot1 satisfies predicate quot2, false otherwise.", "kind": "symbol", "module": "global", "name": "one?", "signature": "quot1 quot2 ==> bool" }, "operator": { "description": "Provides a way to define a new operator (symbol, sigil, or typeclass) on the current scope performing additional checks (compared to define and define-sigil), and automatically mapping inputs and outputs.\r\n \r\n quot is a quotation containing:\r\n \r\n * A symbol identifying the type of operator to define (symbol, sigil, constructor or typeclass).\r\n * A symbol identifying the name of the operator.\r\n * A quotation defining the signature of the operator, containing input and output values identified by their type and a capturing symbol, separated by the == symbol.\r\n * A quotation identifying the body of the operator.\r\n\r\n The main additional features offered by this way of defining operators are the following:\r\n\r\n * If in development mode (-d or --dev flag specified at run time), both input and output values are checked against a type (like when using the expect operator *and* automatically captured in a symbol that can be referenced in the operator body quotation.\r\n * The full signature of the operator is declared, making the resulting code easier to understand at quick glance.\r\n * An exception is automatically raised if the operator body pollutes the stack by adding or removing elements from the stack (besides adding the declared output values).\r\n * It is possible to use the return symbol within the body quotation to immediately stop the evaluation of the body quotation and automatically push the output values on the stack.\r\n \r\n \r\n Example\r\n \r\n The following program defines a pow operator that calculates the power of a number providing its base and exponent, and handling some NaN results using the return symbol:\r\n\r\n (\r\n symbol pow\r\n (num :base int :exp == num :result)\r\n ( \r\n (base 0 == exp 0 == and)\r\n (nan @result return)\r\n when\r\n (base 1 == exp inf == and)\r\n (nan @result return)\r\n when\r\n (base inf == exp 0 == and)\r\n (nan @result return)\r\n when\r\n exp 1 - :n\r\n base (dup) n times (*) n times @result\r\n )\r\n ) ::", "kind": "symbol", "module": "global", "name": "operator", "signature": "quot ==> a*" }, "opts": { "description": "Returns a dictionary of all options passed to the current program, with their respective values.", "kind": "symbol", "module": "global", "name": "opts", "signature": " ==> dict" }, "or": { "description": "Returns true if bool1 or bool2 is true, false otherwise.", "kind": "symbol", "module": "global", "name": "or", "signature": "bool1 bool2 ==> bool3" }, "ord": { "description": "Returns the ASCII code int corresponding to the single character str.", "kind": "symbol", "module": "global", "name": "ord", "signature": "str ==> int" }, "parent-scope": { "description": "Returns a dictionary dict2 holding a reference to the parent scope of dict1 or null if dict1 is global.", "kind": "symbol", "module": "global", "name": "parent-scope", "signature": "dict1 ==> dict2" }, "parse": { "description": "Parses str and returns a quoted program quot.", "kind": "symbol", "module": "global", "name": "parse", "signature": "str ==> quot" }, "parse-url": { "description": "Parses the url str into its components and stores them into dict:url.", "kind": "symbol", "module": "global", "name": "parse-url", "signature": "str ==> dict:url" }, "partition": { "description": "Partitions quot1 into two quotations: quot3 contains all elements of quot1 that satisfy predicate quot2, quot4 all the others.\r\n \r\n \r\n Example\r\n \r\n The following program leaves (1 3 5) (2 4 6) on the stack:\r\n \r\n (1 2 3 4 5 6) \r\n (odd?) partition", "kind": "symbol", "module": "global", "name": "partition", "signature": "quot1 quot2 ==> quot3 quot4" }, "pred": { "description": "Returns the predecessor of int1.", "kind": "symbol", "module": "global", "name": "pred", "signature": "int1 ==> int2" }, "prefix": { "description": "Prepends 'sym2 to 'sym1.", "kind": "symbol", "module": "global", "name": "prefix", "signature": "'sym1 'sym2 ==> str" }, "prefix-dequote": { "description": "Dequotes quot using prefix notation (essentially it reverses quot and dequotes it).\r\n \r\n \r\n Example\r\n \r\n The following program leaves 4 on the stack:\r\n\r\n (* 8 4) prefix-dequote", "kind": "symbol", "module": "global", "name": "prefix-dequote", "signature": "quot ==> a" }, "prepend": { "description": "Returns a new quotation containing the contents of quot with a prepended.", "kind": "symbol", "module": "global", "name": "prepend", "signature": "a quot ==> (a a*)" }, "print": { "description": "Prints a to STDOUT.", "kind": "symbol", "module": "global", "name": "print", "signature": "a ==> a" }, "product": { "description": "Returns the product of all items of quot. quot is a quotation of integers.", "kind": "symbol", "module": "global", "name": "product", "signature": "quot ==> int" }, "prompt": { "description": "This symbol is used to configure the prompt of the min shell. By default, it is set to the following quotation:\r\n \r\n (\"[$1]$$ \" (sys.pwd) = %)", "kind": "symbol", "module": "global", "name": "prompt", "signature": " ==> str" }, "publish": { "description": "Publishes symbol 'sym to the scope of dict.\r\n \r\n \r\n Example\r\n \r\n Publish symbol [my-local-symbol](class:kwd) to [global](class:kwd) scope:\r\n 'my-local-symbol global publish", "kind": "symbol", "module": "global", "name": "publish", "signature": "'sym dict ==> " }, "put-env": { "description": "Sets environment variable 'sym2 to 'sym1.", "kind": "symbol", "module": "global", "name": "put-env", "signature": "'sym1 'sym2 ==> str" }, "puts": { "description": "Prints a and a new line to STDOUT.", "kind": "symbol", "module": "global", "name": "puts", "signature": "a ==> a" }, "quit": { "description": "Exits the program or shell with 0 as return code.", "kind": "symbol", "module": "global", "name": "quit", "signature": " ==> " }, "quotation?": { "description": "Returns true if a is a quotation, false otherwise.", "kind": "symbol", "module": "global", "name": "quotation?", "signature": "a ==> bool" }, "quote": { "description": "Wraps a in a quotation.", "kind": "symbol", "module": "global", "name": "quote", "signature": "a ==> (a)" }, "quote-map": { "description": "Returns a new quotation quot2 obtained by quoting each element of quot1.", "kind": "symbol", "module": "global", "name": "quote-map", "signature": "quot1 ==> quot2" }, "quotecmd": { "description": "Creates a command with the value of str and wraps it in a quotation.", "kind": "symbol", "module": "global", "name": "quotecmd", "signature": "str ==> (sym)" }, "quoted-symbol?": { "description": "Returns true if a is a quoted symbol, false otherwise.", "kind": "symbol", "module": "global", "name": "quoted-symbol?", "signature": "a ==> bool" }, "quotesym": { "description": "Creates a symbol with the value of str and wraps it in a quotation.", "kind": "symbol", "module": "global", "name": "quotesym", "signature": "str ==> (sym)" }, "raise": { "description": "Raises the error specified via the dictionary dict:error.", "kind": "symbol", "module": "global", "name": "raise", "signature": "dict:error ==> " }, "random": { "description": "Returns a random number int2 between 0 and int1-1. \r\n \r\n \r\n Note\r\n \r\n You must call randomize to initialize the random number generator, otherwise the same sequence of numbers will be returned.", "kind": "symbol", "module": "global", "name": "random", "signature": "int1 ==> int2" }, "randomize": { "description": "Initializes the random number generator using a seed based on the current timestamp.", "kind": "symbol", "module": "global", "name": "randomize", "signature": " ==> {{null}" }, "range": { "description": "Takes a quotation quot1 of two or three integers in the form of *start*, *end* and an optional *step* (1 if not specified) and generates the sequence and returns the resulting quotation of integers quot2.", "kind": "symbol", "module": "global", "name": "range", "signature": "quot2 ==> quot2" }, "raw-args": { "description": "Returns a list of all arguments and (non-parsed) options passed to the current program.", "kind": "symbol", "module": "global", "name": "raw-args", "signature": " ==> quot" }, "raw-get": { "description": "Returns the _n^th_ element of quot (zero-based) wrapped in a dict:rawval.", "kind": "symbol", "module": "global", "name": "raw-get", "signature": "quot int ==> dict:rawval" }, "reduce": { "description": "Combines each successive element of quot1 using quot2. On the first iteration, the first two inputs processed by quot2 are a1 and the first element of quot1.\r\n \r\n \r\n Example\r\n \r\n The following program leaves 120 on the stack:\r\n \r\n (1 2 3 4 5) \r\n 1 (*) reduce", "kind": "symbol", "module": "global", "name": "reduce", "signature": "quot1 a1 quot2 ==> a2" }, "reject": { "description": "Returns a new quotatios quot3 including all elements of quot1 that do not satisfy predicate quot2 (i.e. the opposite of filter)", "kind": "symbol", "module": "global", "name": "reject", "signature": "quot1 quot2 ==> quot3" }, "remove": { "description": "Returns the _n^th_ element of quot1 (zero-based), and returns the modified copy of the quotation quot2.", "kind": "symbol", "module": "global", "name": "remove", "signature": "quot1 int ==> quot2" }, "remove-symbol": { "description": "Removes the symbol 'sym from the [.min\\_symbols](class:file) file.", "kind": "symbol", "module": "global", "name": "remove-symbol", "signature": "'sym ==> " }, "repeat": { "description": "Returns str containing 'sym repeated int times.", "kind": "symbol", "module": "global", "name": "repeat", "signature": "'sym int ==> str" }, "replace": { "description": "Returns a copy of str1 containing all occurrences of str2 replaced by str3\r\n \r\n Tip\r\n \r\n str2 is a Perl-compatible regular expression.\r\n \r\n \r\n Example\r\n \r\n The following:\r\n \r\n \"This is a stupid test. Is it really a stupid test?\" \" s[a-z]+\" \" simple\" replace\r\n \r\n produces:\r\n \r\n \"This is a simple test. Is it really a simple test?\"", "kind": "symbol", "module": "global", "name": "replace", "signature": "str1 str2 str3 ==> str4" }, "replace-apply": { "description": "Returns a copy of str1 containing all occurrences of str2 replaced by applying quot to each quotation corresponding to each match.\r\n \r\n Tip\r\n \r\n str2 is a Perl-compatible regular expression.\r\n \r\n \r\n Example\r\n \r\n The following:\r\n \r\n \":1::2::3::4:\" \":(\\d):\" (1 get :d \"-$#-\" (d) =%) replace-apply\r\n \r\n produces:\r\n \r\n \"-1--2--3--4-\"\r\n \r\n Note that for each match the following quotations (each containing the full match and the captured matches) are produced as input for the replace quotation: (\"-1-\" \"1\") (\"-2-\" \"2\") (\"-3-\" \"3\") (\"-4-\" \"4\")", "kind": "symbol", "module": "global", "name": "replace-apply", "signature": "str1 str2 quot ==> str3" }, "require": { "description": "Parses and interprets (in a separated interpreter) the specified min module, and returns a module dictionary dict containing all the symbols defined in 'sym. \r\n\r\nThis symbol will attempt to locate the specified module in this way. Given the following min program:\r\n\r\n 'my-module require :my-module\r\n\r\n1. Check for a file named my-module in the same folder as the current file (with our without a .min extension).\r\n2. Check for a file named index.min in the mmm/my-module/*/index.min folder relative to the current file (locally-installed [managed-module](/learn-mmm)).\r\n3. Check for a file named index.min in the $HOME/mmm/my-module/*/index.min folder (globally-installed [managed-module](/learn-mmm)). If multiple versions of the same module are present, the first one will be loaded.", "kind": "symbol", "module": "global", "name": "require", "signature": "'sym ==> dict" }, "rest": { "description": "Returns a new quotation quot2 containing all elements of quot1 quotation except for the first.", "kind": "symbol", "module": "global", "name": "rest", "signature": "quot1 ==> quot2" }, "return": { "description": "If used within the body quotation of an operator definition, causes the interpreter to stop pushing further body elements on the stack and start pushing tbe operator output values on the stack. \r\n\r\nIf used outside of the body quotation of an operator definition, it raises an exception.", "kind": "symbol", "module": "global", "name": "return", "signature": " ==> " }, "reverse": { "description": "Returns a new quotation quot2 containing all elements of quot1 in reverse order.", "kind": "symbol", "module": "global", "name": "reverse", "signature": "quot1 ==> quot2" }, "save-symbol": { "description": "Saves the contents of symbol 'sym to the [.min\\_symbols](class:file) file.", "kind": "symbol", "module": "global", "name": "save-symbol", "signature": "'sym ==> " }, "saved-symbols": { "description": "Returns a quotation containing all symbols saved in the [.min\\_symbols](class:file) file.", "kind": "symbol", "module": "global", "name": "saved-symbols", "signature": " ==> (str*)" }, "scope": { "description": "Returns a dictionary dict holding a reference to the current scope.\r\n \r\n This can be useful to save a reference to a given execution scope to access later on.\r\n\r\n \r\n Example\r\n \r\n The following program leaves {(2) :two ;module} on the stack:\r\n \r\n {} :myscope (2 :two scope @myscope) -", "kind": "symbol", "module": "global", "name": "scope", "signature": " ==> dict" }, "scope-sigils": { "description": "Returns a list of all sigils defined in dictionary dict.", "kind": "symbol", "module": "global", "name": "scope-sigils", "signature": "dict ==> (str*)" }, "scope-symbols": { "description": "Returns a list of all symbols defined in dictionary dict.", "kind": "symbol", "module": "global", "name": "scope-symbols", "signature": "dict ==> (str*)" }, "seal-sigil": { "description": "Seals the user-defined sigil 'sym, so that it cannot be re-defined.", "kind": "symbol", "module": "global", "name": "seal-sigil", "signature": "'sym ==> " }, "seal-symbol": { "description": "Seals symbol 'sym, so that it cannot be re-assigned.", "kind": "symbol", "module": "global", "name": "seal-symbol", "signature": "'sym ==> " }, "sealed-sigil?": { "description": "Returns true if the sigil 'sym is sealed, false otherwise.", "kind": "symbol", "module": "global", "name": "sealed-sigil?", "signature": "'sym ==> bool" }, "sealed-symbol?": { "description": "Returns true if the symbol 'sym is sealed, false otherwise.", "kind": "symbol", "module": "global", "name": "sealed-symbol?", "signature": "'sym ==> bool" }, "search": { "description": "Returns a quotation containing the first occurrence of str2 within str1. Note that:\r\n \r\n * The first element of quot is the matching substring.\r\n * Other elements (if any) contain captured substrings.\r\n * If no matches are found, the quotation contains empty strings.\r\n \r\n \r\n Tip\r\n \r\n str2 is a Perl-compatible regular expression.\r\n \r\n \r\n Example\r\n \r\n The following:\r\n \r\n \"192.168.1.1, 127.0.0.1\" \"[0-9]+\\.[0-9]+\\.([0-9]+)\\.([0-9]+)\" search\r\n \r\n produces: (\"192.168.1.1\", \"1\", \"1\")", "kind": "symbol", "module": "global", "name": "search", "signature": "str1 str2 ==> quot" }, "search-all": { "description": "Returns a quotation of quotations (like the one returned by the search operator) containing all occurrences of str2 within str1.", "kind": "symbol", "module": "global", "name": "search-all", "signature": "str1 str2 ==> quot" }, "semver-inc-major": { "description": "Increments the major digit of the [SemVer](https://semver.org)-compliant string (with no additional labels) str1.", "kind": "symbol", "module": "global", "name": "semver-inc-major", "signature": "str1 ==> str2" }, "semver-inc-minor": { "description": "Increments the minor digit of the [SemVer](https://semver.org)-compliant string (with no additional labels) str1.", "kind": "symbol", "module": "global", "name": "semver-inc-minor", "signature": "str1 ==> str2" }, "semver-inc-patch": { "description": "Increments the patch digit of the [SemVer](https://semver.org)-compliant string (with no additional labels) str1.", "kind": "symbol", "module": "global", "name": "semver-inc-patch", "signature": "str1 ==> str2" }, "semver?": { "description": "Checks whether str is a [SemVer](https://semver.org)-compliant version or not.", "kind": "symbol", "module": "global", "name": "semver?", "signature": "str ==> bool" }, "set": { "description": "Sets the value of the _n^th_ element quot1 (zero-based) to a, and returns the modified copy of the quotation quot2.", "kind": "symbol", "module": "global", "name": "set", "signature": "quot1 a int ==> quot2" }, "set-sym": { "description": "Sets the value of the _n^th_ element quot1 (zero-based) to 'sym (treating it as a symbol), and returns the modified copy of the quotation quot2.", "kind": "symbol", "module": "global", "name": "set-sym", "signature": "quot1 'sym int ==> quot2" }, "shl": { "description": "Computes the *shift left* operation of int1 and int2.", "kind": "symbol", "module": "global", "name": "shl", "signature": "int1 int2 ==> int3" }, "shorten": { "description": "Returns a quotation quot2 containing the first _n_ values of the input quotation quot1.", "kind": "symbol", "module": "global", "name": "shorten", "signature": "quot1 int ==> quot2" }, "shr": { "description": "Computes the *shift right* operation of int1 and int2.", "kind": "symbol", "module": "global", "name": "shr", "signature": "int1 int2 ==> int3" }, "sigil": { "description": "Symbol used to define a sigil when using the operator symbol.", "kind": "symbol", "module": "global", "name": "sigil", "signature": " ==> " }, "sigils": { "description": "Returns a list of all sigils defined in the [global](class:kwd) scope.", "kind": "symbol", "module": "global", "name": "sigils", "signature": " ==> (str*)" }, "size": { "description": "Returns the length of quot.", "kind": "symbol", "module": "global", "name": "size", "signature": "quot ==> int" }, "slice": { "description": "Creates a new quotation quot2 obtaining by selecting all elements of quot1 between indexes int1 and int2.\r\n \r\n \r\n Example\r\n \r\n The following program leaves (3 4 5) on the stack:\r\n \r\n (1 2 3 4 5 6) \r\n 2 4 slice", "kind": "symbol", "module": "global", "name": "slice", "signature": "quot1 int1 int2 ==> quot2" }, "sort": { "description": "Sorts all elements of quot1 according to predicate quot2. \r\n \r\n \r\n Example\r\n \r\n The following program leaves (1 3 5 7 9 13 16) on the stack:\r\n \r\n (1 9 5 13 16 3 7) ' sort", "kind": "symbol", "module": "global", "name": "sort", "signature": "quot1 quot2 ==> quot3" }, "source": { "description": "Display the source code of symbol 'sym (if it has been implemented a min quotation).", "kind": "symbol", "module": "global", "name": "source", "signature": "'sym ==> quot" }, "split": { "description": "Splits 'sym1 using separator 'sym2 (a Perl-compatible regular expression) and returns the resulting strings within the quotation quot.", "kind": "symbol", "module": "global", "name": "split", "signature": "'sym1 'sym2 ==> quot" }, "stack.clear": { "description": "Empties the stack.", "kind": "symbol", "module": "stack", "name": "clear", "signature": "a ==> " }, "stack.cleave": { "description": "Applies each quotation contained in the first element to the second element a1.\r\n \r\n Example\r\n \r\n The following program leaves 2 on the stack:\r\n \r\n (1 2 3) ((sum) (size)) stack.cleave /", "kind": "symbol", "module": "stack", "name": "cleave", "signature": "a1 (quot*) ==> a*" }, "stack.cons": { "description": "Prepends a1 to the quotation on top of the stack.", "kind": "symbol", "module": "stack", "name": "cons", "signature": "a1 (a*) ==> (a1 a*)" }, "stack.dip": { "description": "Removes the first and second element from the stack, dequotes the first element, and restores the second element.", "kind": "symbol", "module": "stack", "name": "dip", "signature": "a1 (a2) ==> a* a1" }, "stack.dup": { "description": "Duplicates the first element on the stack.", "kind": "symbol", "module": "stack", "name": "dup", "signature": "a1 ==> a1 a1" }, "stack.get": { "description": "Puts a quotation containing the contents of the stack on the stack.", "kind": "symbol", "module": "stack", "name": "get", "signature": " ==> (a*)" }, "stack.keep": { "description": "Removes the first element from the stack, dequotes it, and restores the second element.\r\n \r\n Example\r\n \r\n The following program leaves 5 3 on the stack:\r\n \r\n 2 3 '+ stack.keep", "kind": "symbol", "module": "stack", "name": "keep", "signature": "a1 quot ==> a* a1" }, "stack.nip": { "description": "Removes the second element from the stack.", "kind": "symbol", "module": "stack", "name": "nip", "signature": "a1 a2 ==> a2" }, "stack.over": { "description": "Pushes a copy of the second element on top of the stack.", "kind": "symbol", "module": "stack", "name": "over", "signature": "a1 a2 ==> a1 a2 a1" }, "stack.pick": { "description": "Pushes a copy of the third element on top of the stack.", "kind": "symbol", "module": "stack", "name": "pick", "signature": "a1 a2 a3 ==> a1 a2 a3 a1" }, "stack.pop": { "description": "Removes the first element from the stack.", "kind": "symbol", "module": "stack", "name": "pop", "signature": "a ==> " }, "stack.rolldown": { "description": "Moves the third element in first position, the second in third position and the the first in second position.", "kind": "symbol", "module": "stack", "name": "rolldown", "signature": "a1 a2 a3 ==> a2 a3 a1" }, "stack.rollup": { "description": "Moves the third and second element into second and third position and moves the first element into third position.", "kind": "symbol", "module": "stack", "name": "rollup", "signature": "a1 a2 a3 ==> a3 a2 a1" }, "stack.set": { "description": "Substitute the existing stack with the contents of quot.", "kind": "symbol", "module": "stack", "name": "set", "signature": "quot ==> a*" }, "stack.sip": { "description": "Saves the quot1, dequotes quot2, and restores quot1.", "kind": "symbol", "module": "stack", "name": "sip", "signature": "quot1 quot2 ==> a* quot1" }, "stack.spread": { "description": "Applies each quotation contained in the first element to each subsequent corresponding element.\r\n \r\n Example\r\n \r\n The following program leaves (1 4) on the stack:\r\n \r\n (1 2) (3 4) ((0 get) (1 get)) stack.spread", "kind": "symbol", "module": "stack", "name": "spread", "signature": "a* (quot*) ==> a*" }, "stack.swap": { "description": "Swaps the first two elements on the stack.", "kind": "symbol", "module": "stack", "name": "swap", "signature": "a1 a2 ==> a2 a1" }, "stack.swons": { "description": "Prepends a1 to the quotation that follows it.", "kind": "symbol", "module": "stack", "name": "swons", "signature": "(a*) a1 ==> (a1 a*)" }, "store.delete": { "description": "Removes an item from the datastore dict:datastore. The item is uniquely identified by 'sym, which contains the collection containing the item and the item id, separated by a forward slash (/). Puts the reference to the modified datastore back on tbe stack.", "kind": "symbol", "module": "store", "name": "delete", "signature": "dict:datastore 'sym ==> dict:datastore" }, "store.get": { "description": "Retrieves item dict from datastore dict:datastore. dict is retrieved by specifying 'sym, which contains the collection containing the item and the item id, separated by a forward slash (/).", "kind": "symbol", "module": "store", "name": "get", "signature": "dict:datastore 'sym ==> dict" }, "store.has?": { "description": "Returns true if dict:datastore has a key called 'sym (which contains the collection containing the item and the item id), false otherwise.", "kind": "symbol", "module": "store", "name": "has?", "signature": "dict:datastore 'sym ==> bool" }, "store.init": { "description": "Initializes a bew datastore by creating the 'sym JSON file. Puts the datastore instance on the stack.", "kind": "symbol", "module": "store", "name": "init", "signature": "'sym ==> dict:datastore" }, "store.post": { "description": "Adds the dictionary dict to the datastore dict:datastore inside collection 'sym, generating and adding a unique **id** field to dict. If the collection 'sym does not exist it is created. Puts the reference to the modified datastore back on tbe stack.", "kind": "symbol", "module": "store", "name": "post", "signature": "dict:datastore 'sym dict ==> dict:datastore" }, "store.put": { "description": "Adds the dictionary dict to the datastore dict:datastore. 'sym contains the collection where dict will be placed and the id of dict, separated by a forward slash (/). If the collection 'sym does not exist it is created. Puts the reference to the modified datastore back on tbe stack.", "kind": "symbol", "module": "store", "name": "put", "signature": "dict:datastore 'sym dict ==> dict:datastore" }, "store.query": { "description": "Retrieves a quotation of dictionaries from the collection 'sym of datastore dict:datastore obtained by applying quot as a filter to each item of the collection, picking only the elements that match the filter.\r\n\r\n \r\n Example\r\n\r\n Assuming that **ds** is a datastore, the following program retrieves all elements of teh collection **posts** whose author field is set to \"h3rald\":\r\n\r\n ds \"posts\" ('author dget \"h3rald\" ==) dquery", "kind": "symbol", "module": "store", "name": "query", "signature": "dict:datastore 'sym quot ==> (dict*)" }, "store.read": { "description": "Reads the previously-created datastore from the file 'sym and puts the resulting datastore instance on the stack.", "kind": "symbol", "module": "store", "name": "read", "signature": "'sym ==> dict:datastore" }, "store.write": { "description": "Writes the contents of the datastore dict:datastore to the filesystem.", "kind": "symbol", "module": "store", "name": "write", "signature": "dict:datastore ==> dict:datastore" }, "string": { "description": "Converts a to its string representation.", "kind": "symbol", "module": "global", "name": "string", "signature": "a ==> str" }, "string?": { "description": "Returns true if a is a string, false otherwise.", "kind": "symbol", "module": "global", "name": "string?", "signature": "a ==> bool" }, "stringlike?": { "description": "Returns true if a is a string or a quoted symbol, false otherwise.", "kind": "symbol", "module": "global", "name": "stringlike?", "signature": "a ==> bool" }, "strip": { "description": "Returns str, which is set to 'sym with leading and trailing spaces removed.", "kind": "symbol", "module": "global", "name": "strip", "signature": "'sym ==> str" }, "substr": { "description": "Returns a substring str2 obtained by retrieving int2 characters starting from index int1 within str1.", "kind": "symbol", "module": "global", "name": "substr", "signature": "str1 int1 int2 ==> str2" }, "succ": { "description": "Returns the successor of int1.", "kind": "symbol", "module": "global", "name": "succ", "signature": "int1 ==> int2" }, "suffix": { "description": "Appends 'sym2 to 'sym1.", "kind": "symbol", "module": "global", "name": "suffix", "signature": "'sym1 'sym2 ==> str" }, "sum": { "description": "Returns the sum of all items of quot. quot is a quotation of integers.", "kind": "symbol", "module": "global", "name": "sum", "signature": "quot ==> int" }, "symbol": { "description": "Symbol used to define a symbol when using the operator symbol.", "kind": "symbol", "module": "global", "name": "symbol", "signature": " ==> " }, "symbols": { "description": "Returns a list of all symbols defined in the [global](class:kwd) scope.", "kind": "symbol", "module": "global", "name": "symbols", "signature": " ==> (str*)" }, "symmetric-difference": { "description": "Calculates the symmetric difference quot3 of quot1 and quot2.\r\n\r\n \r\n Example\r\n \r\n The following program leaves (true \"a\" 2) on the stack:\r\n \r\n (1 2 \"test\") (\"test\" \"a\" true 1) symmetric-difference", "kind": "symbol", "module": "global", "name": "symmetric-difference", "signature": "quot1 quot2 ==> quot3" }, "sys.admin?": { "description": "Returns true if the program is being run with administrative privileges.", "kind": "symbol", "module": "sys", "name": "admin?", "signature": " ==> bool" }, "sys.cd": { "description": "Change the current directory to 'sym.", "kind": "symbol", "module": "sys", "name": "cd", "signature": "'sym ==> " }, "sys.chmod": { "description": "Sets the permissions of file or directory 'sym to int. int is a three-digit representation of user, group and other permissions. See the [Unix Permissions Calculator](http://permissions-calculator.org/) for examples and conversions.\r\n \r\n \r\n Example\r\n \r\n The following program makes the file **/tmp/test.txt** readable, writable and executable by its owner, and readable and executable by users of the same group and all other users:\r\n \r\n \"/tmp/test.txt 755 sys.chmod\"", "kind": "symbol", "module": "sys", "name": "chmod", "signature": "'sym int ==> " }, "sys.cp": { "description": "Copies the file or directory 'sym1 to 'sym2.", "kind": "symbol", "module": "sys", "name": "cp", "signature": "'sym1 'sym2 ==> " }, "sys.cpu": { "description": "Returns the host CPU. It can be one of the following strings i386, alpha, powerpc, powerpc64, powerpc64el, sparc, amd64, mips, mipsel, arm, arm64.", "kind": "symbol", "module": "sys", "name": "cpu", "signature": " ==> str" }, "sys.env?": { "description": "Returns true if environment variable 'sym exists, false otherwise.", "kind": "symbol", "module": "sys", "name": "env?", "signature": "'sym ==> bool" }, "sys.hardlink": { "description": "Creates hardlink 'sym2 for file or directory 'sym1.", "kind": "symbol", "module": "sys", "name": "hardlink", "signature": "'sym1 'sym2 ==> " }, "sys.ls": { "description": "Returns a quotation quot containing all children (files and directories) of the directory 'sym.", "kind": "symbol", "module": "sys", "name": "ls", "signature": "'sym ==> quot" }, "sys.ls-r": { "description": "Returns a quotation quot containing all children (files and directories) of the directory 'sym, recursively.", "kind": "symbol", "module": "sys", "name": "ls-r", "signature": "'sym ==> quot" }, "sys.mkdir": { "description": "Creates the specified directory 'sym.", "kind": "symbol", "module": "sys", "name": "mkdir", "signature": "'sym ==> " }, "sys.mv": { "description": "Moves the file or directory 'sym1 to 'sym2.", "kind": "symbol", "module": "sys", "name": "mv", "signature": "'sym1 'sym2 ==> " }, "sys.os": { "description": "Returns the host operating system. It can be one of the following strings: windows, macosx, linux, netbsd, freebsd, openbsd, solaris, aix, standalone.", "kind": "symbol", "module": "sys", "name": "os", "signature": " ==> str" }, "sys.parent-dir": { "description": "Returns the full path to the parent directory.", "kind": "symbol", "module": "sys", "name": "parent-dir", "signature": " ==> str" }, "sys.pwd": { "description": "Returns the full path to the current directory.", "kind": "symbol", "module": "sys", "name": "pwd", "signature": " ==> str" }, "sys.rm": { "description": "Deletes the specified file 'sym.", "kind": "symbol", "module": "sys", "name": "rm", "signature": "'sym ==> " }, "sys.rmdir": { "description": "Deletes the specified directory 'sym and all its subdirectories recursively.", "kind": "symbol", "module": "sys", "name": "rmdir", "signature": "'sym ==> " }, "sys.run": { "description": "Executes the external command 'sym in the current directory without displaying its output. Returns a dictionary containing the command output and return code (in keys **output** and **code** respectively).", "kind": "symbol", "module": "sys", "name": "run", "signature": "'sym ==> dict" }, "sys.sleep": { "description": "Halts program execution for int milliseconds.", "kind": "symbol", "module": "sys", "name": "sleep", "signature": "int ==> " }, "sys.symlink": { "description": "Creates symlink 'sym2 for file or directory 'sym1.", "kind": "symbol", "module": "sys", "name": "symlink", "signature": "'sym1 'sym2 ==> " }, "sys.system": { "description": "Executes the external command 'sym in the current directory and pushes its return code on the stack.", "kind": "symbol", "module": "sys", "name": "system", "signature": "'sym ==> int" }, "sys.unzip": { "description": "Decompresses zip file 'sym1 to directory 'sym2 (created if not present).", "kind": "symbol", "module": "sys", "name": "unzip", "signature": "'sym1 'sym2 ==> " }, "sys.which": { "description": "Returns the full path to the directory containing executable 'sym, or an empty string if the executable is not found in **$PATH**.", "kind": "symbol", "module": "sys", "name": "which", "signature": "'sym ==> str" }, "sys.zip": { "description": "Compresses files included in quotation quot into zip file 'sym.", "kind": "symbol", "module": "sys", "name": "zip", "signature": "quot 'sym ==> " }, "take": { "description": "Returns a quotation quot2 containing the first _n_ values of the input quotation quot1, or quot1 itself if int is greater than the length of quot1.", "kind": "symbol", "module": "global", "name": "take", "signature": "quot1 int ==> quot2" }, "tap": { "description": "Performs the following operations:\r\n \r\n 1. Removes a from the stack.\r\n 2. For each quotation defined in quot (which is a quotation of quotations each requiring one argument and returning one argument):\r\n 1. Pushes a back to the stack.\r\n 2. Dequotes the quotation and saves the result as a.\r\n 3. Push the resulting a back on the stack.\r\n \r\n \r\n Example\r\n \r\n The following program:\r\n \r\n {1 :a 2 :b 3 :c} (\r\n (stack.dup 'a dict.get succ succ 'a dict.set)\r\n (stack.dup 'b dict.get succ 'b dict.set)\r\n ) tap\r\n \r\n Returns {3 :a 3 :b 3 :c}.", "kind": "symbol", "module": "global", "name": "tap", "signature": "a quot ==> a" }, "time.datetime": { "description": "Returns an ISO 8601 string representing the combined date and time in UTC of timestamp int.", "kind": "symbol", "module": "time", "name": "datetime", "signature": "int ==> str" }, "time.format": { "description": "Formats timestamp int using string str.\r\n \r\n \r\n Tip\r\n \r\n For information on special characters in the format string, see the [format](https://nim-lang.org/docs/times.html#format,TimeInfo,string) nim method.", "kind": "symbol", "module": "time", "name": "format", "signature": "int str ==> str" }, "time.info": { "description": "Returns a timeinfo dictionary from timestamp int.", "kind": "symbol", "module": "time", "name": "info", "signature": "int ==> dict:timeinfo" }, "time.now": { "description": "Returns the current time as Unix timestamp with microseconds.", "kind": "symbol", "module": "time", "name": "now", "signature": " ==> flt" }, "time.stamp": { "description": "Returns the current time as Unix timestamp.", "kind": "symbol", "module": "time", "name": "stamp", "signature": " ==> int" }, "time.to-timestamp": { "description": "Converts the timeinfo dictionary dict:timeinfo to the corresponding Unix timestamp.", "kind": "symbol", "module": "time", "name": "to-timestamp", "signature": "dict:timeinfo ==> int" }, "times": { "description": "Applies the quotation quot int times.", "kind": "symbol", "module": "global", "name": "times", "signature": "quot int ==> a*" }, "titleize": { "description": "Returns a copy of 'sym in which the first character of each word is capitalized.", "kind": "symbol", "module": "global", "name": "titleize", "signature": "'sym ==> str" }, "to-bin": { "description": "Converts int to its binary representation.", "kind": "symbol", "module": "global", "name": "to-bin", "signature": "int ==> str" }, "to-dec": { "description": "Converts int to its decimal representation.", "kind": "symbol", "module": "global", "name": "to-dec", "signature": "int ==> str" }, "to-hex": { "description": "Converts int to its hexadecimal representation.", "kind": "symbol", "module": "global", "name": "to-hex", "signature": "int ==> str" }, "to-json": { "description": "Converts a into a JSON string.", "kind": "symbol", "module": "global", "name": "to-json", "signature": "a ==> str" }, "to-oct": { "description": "Converts int to its octal representation.", "kind": "symbol", "module": "global", "name": "to-oct", "signature": "int ==> str" }, "to-semver": { "description": "Given a a dictionary dict containing a **major**, **minor**, and **patch** key/value pairs , it pushes a basic [SemVer](https://semver.org)-compliant string (with no additional labels) str on the stack.", "kind": "symbol", "module": "global", "name": "to-semver", "signature": "dict ==> str" }, "to-yaml": { "description": "Converts a into a YAML string.\r\n\r\n \r\n Note\r\n \r\n At present, only min dictionaries containing string values are supported.", "kind": "symbol", "module": "global", "name": "to-yaml", "signature": "a ==> str" }, "tokenize": { "description": "Parses the min program str and returns a quotation quot containing dictionaries with a type symbol and a value symbol for each token.", "kind": "symbol", "module": "global", "name": "tokenize", "signature": "str ==> quot" }, "try": { "description": "Evaluates a quotation as a try/catch/finally block. \r\n \r\n The must contain the following elements:\r\n \r\n 1. A quotation quot1 containing the code to be evaluated (_try_ block).\r\n 1. _(optional)_ A quotation quot2 containing the code to execute in case of error (_catch_ block).\r\n 1. _(optional)_ A quotation quot3 containing the code to execute after the code has been evaluated, whether an error occurred or not (_finally_ block).\r\n \r\n \r\n Example\r\n \r\n The following program executed on an empty stack prints the message \"Insufficient items on the stack\" and pushes 0 on the stack:\r\n \r\n (\r\n (stack.pop)\r\n (format-error puts)\r\n (0)\r\n ) try", "kind": "symbol", "module": "global", "name": "try", "signature": "(quot1 quot2? quot3?) ==> a*" }, "type": { "description": "Returns the data type of a. In cased of typed dictionaries, the type name is prefixed by dict:, e.g. dict:module, dict:socket, etc.", "kind": "symbol", "module": "global", "name": "type", "signature": "a ==> str" }, "type?": { "description": "Returns true if the data type of a satisfies the specified type expression 'sym, false otherwise.", "kind": "symbol", "module": "global", "name": "type?", "signature": "a 'sym ==> bool" }, "typealias": { "description": "Creates a type alias 'sym1 for type expression 'sym2.", "kind": "symbol", "module": "global", "name": "typealias", "signature": "'sym1 'sym2 ==> " }, "typeclass": { "description": "Symbol used to define a typeclass when using the operator symbol.", "kind": "symbol", "module": "global", "name": "typeclass", "signature": " ==> " }, "union": { "description": "Calculates the union quot3 of quot1 and quot2.\r\n\r\n \r\n Example\r\n \r\n The following program leaves (true 1 \"test\" \"a\" 2) on the stack:\r\n \r\n (1 2 \"test\") (\"test\" \"a\" true 1) union", "kind": "symbol", "module": "global", "name": "union", "signature": "quot1 quot2 ==> quot3" }, "unless": { "description": "If 1 evaluates to false then evaluates 2.", "kind": "symbol", "module": "global", "name": "unless", "signature": "quot1 quot2 ==> a*" }, "unseal-sigil": { "description": "Unseals sigil 'sym, so that it can be re-defined (system sigils cannot be unsealed).", "kind": "symbol", "module": "global", "name": "unseal-sigil", "signature": "'sym ==> " }, "unseal-symbol": { "description": "Unseals the user-defined symbol 'sym, so that it can be re-assigned.", "kind": "symbol", "module": "global", "name": "unseal-symbol", "signature": "'sym ==> " }, "uppercase": { "description": "Returns a copy of 'sym converted to uppercase.", "kind": "symbol", "module": "global", "name": "uppercase", "signature": "'sym1 ==> 'sym2" }, "version": { "description": "Returns the current min version number.", "kind": "symbol", "module": "global", "name": "version", "signature": " ==> str" }, "when": { "description": "If quot1 evaluates to true then evaluates quot2.", "kind": "symbol", "module": "global", "name": "when", "signature": "quot1 quot2 ==> a*" }, "while": { "description": "Executes quot2 while quot1 evaluates to true.\r\n \r\n \r\n Example\r\n \r\n The following program prints all natural numbers from 0 to 10:\r\n \r\n 0 :count \r\n (count 10 <=) \r\n (count puts succ @count) while", "kind": "symbol", "module": "global", "name": "while", "signature": "quot1 quot2 ==> a*" }, "with": { "description": "Pushes each item of quot1 on the stack using the scope of quot2 as scope.", "kind": "symbol", "module": "global", "name": "with", "signature": "quot1 quot2 ==> a*" }, "xml.cdata": { "description": "Returns a dict:xml-cdata representing an XML CDATA section.", "kind": "symbol", "module": "xml", "name": "cdata", "signature": "'sym ==> dict:xml-cdata" }, "xml.comment": { "description": "Returns a dict:xml-comment representing an XML comment.", "kind": "symbol", "module": "xml", "name": "comment", "signature": "'sym ==> dict:xml-comment" }, "xml.element": { "description": "Returns a dict:xml-element representing an XML element (it will be an empty element with no attributes or children).", "kind": "symbol", "module": "xml", "name": "element", "signature": "'sym ==> dict:xml-element" }, "xml.entity": { "description": "Returns a dict:xml-entity representing an XML entity.", "kind": "symbol", "module": "xml", "name": "entity", "signature": "'sym ==> dict:xml-entity" }, "xml.entity2utf8": { "description": "Returns the UTF-8 symbol corresponding to the specified XML entity. \r\n \r\n \r\n Example\r\n \r\n The following program prints p to the screen:\r\n \r\n \">\" xml.entity xml.entity2utf8 puts!", "kind": "symbol", "module": "xml", "name": "entity2utf8", "signature": "dict:xml-entity ==> str" }, "xml.escape": { "description": "Converts any <, `, &, ', and \"` present in 'sym into the corresponding XML entities.", "kind": "symbol", "module": "xml", "name": "escape", "signature": "'sym ==> str" }, "xml.from-html": { "description": "Returns an xml-node representing an HTML string (wrapped in a <document tag unless a valid HTML document is provided as input).", "kind": "symbol", "module": "xml", "name": "from-html", "signature": "'sym ==> xml-node" }, "xml.from-xml": { "description": "Returns an xml-node representing an XML string (element or fragment).\r\n \r\n \r\n Example\r\n \r\n The following program:\r\n\r\n \"<a href='https://min-lang.org'min web site</a\" from-xml \r\n returns the following:\r\n \r\n {\r\n {\"https://min-lang.org\" :href} :attributes\r\n ({\"min web site\" :text}) :children\r\n \"a\" :tag\r\n ;xml-element\r\n }", "kind": "symbol", "module": "xml", "name": "from-xml", "signature": "'sym ==> xml-node" }, "xml.query": { "description": "Returns an dict:xml-element representing the first element matching CSS the selector 'sym.\r\n \r\n \r\n Example\r\n \r\n The following program:\r\n\r\n \"<ul\r\n <li class='test'first</li\r\n <li class='other'second</li\r\n <li class='test'third</li\r\n </ul\" \r\n xml.from-xml \".test\" xml.query\r\n Returns the following:\r\n\r\n {\r\n {\"test\" :class} :attributes \r\n ({\"first\" :text}) :children \r\n \"li\" :tag \r\n ;xml-element\r\n }", "kind": "symbol", "module": "xml", "name": "query", "signature": "dict:xml-element 'sym ==> dict:xml-element" }, "xml.query-all": { "description": "Returns a list of dict:xml-element dictionaries representing all the elements matching CSS the selector 'sym.\r\n \r\n \r\n Example\r\n \r\n The following program:\r\n\r\n \"<ul\r\n <li class='test'first</li\r\n <li class='other'second</li\r\n <li class='test'third</li\r\n </ul\" \r\n xml.from-xml \".test\" xml.queryall\r\n Returns the following:\r\n\r\n ({\r\n {\"test\" :class} :attributes \r\n ({\"first\" :text}) :children \r\n \"li\" :tag \r\n ;xml-element\r\n }\r\n {\r\n {\"test\" :class} :attributes \r\n ({\"third\" :text}) :children \r\n \"li\" :tag \r\n ;xml-element\r\n })", "kind": "symbol", "module": "xml", "name": "query-all", "signature": "dict:xml-element 'sym ==> dict:xml-element" }, "xml.text": { "description": "Returns a dict:xml-text representing an XML text node.", "kind": "symbol", "module": "xml", "name": "text", "signature": "'sym ==> dict:xml-text" }, "xml.to-xml": { "description": "Returns a str representing an XML node.", "kind": "symbol", "module": "xml", "name": "to-xml", "signature": "xml-node ==> str" }, "xor": { "description": "Returns true if bool1 and bool2 are different, false otherwise.", "kind": "symbol", "module": "global", "name": "xor", "signature": "bool1 bool2 ==> bool3" }, "~": { "description": "See lambda-bind", "kind": "symbol", "module": "global", "name": "~" } } } |