Advertisement
Guest User

Untitled

a guest
Jun 16th, 2022
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. char (arity) - desc
  2.  
  3. whitespace - nop
  4. ! - Break loop
  5. " - String literal
  6. # - Misc digraph char
  7. $ - TBD
  8. % (2) - (num, num) mod, (str, any) replace % with input
  9. & (2) - (num, num) logical AND
  10. ' - Function ref
  11. ( - Loop forever
  12. ) - Close variadic operator
  13. * (2) - (num, num) multiply, (any, num) repeat b times, (num, any) repeat a times
  14. + (2) - (num, num) add, (any, any) join string representations
  15. , (1) - (any) print with newline, returning the input
  16. - (2) - (num, num) subtract
  17. . - Decimal literal
  18. / (2) - (num, num) divide (div by zero is silent quit)
  19. 0 1 2 3 4 5 6 7 8 9 - number literals
  20. : (1) - (any) return a list [input, input]
  21. ; (1) - (any) print without newline, returning the input
  22. <=> (1) - comparison operators
  23. ? (2) - (any, any) if a truthy, return b, else return 0
  24. #? (3) - (any, any, any) if a truthy, return b, else return c
  25. @ A - TBD
  26. B (2) - (any, num) a from base b
  27. C (1) - (lst) cycle i.e. repeat forever, (num) codepoint to char, (str) char(s) to codepoint(s)
  28. D - Define variable
  29. E - TBD
  30. F (2) - (any, fun) filter a by b
  31. G (2) - (lst, fun) generate inf. list using initial terms a and generator b, (any, any) max(a,b)
  32. H I J K - TBD
  33. L (1) - length of a
  34. M (2) - (any, fun) map a using b, (any, any) min(a,b)
  35. N O P Q - TBD
  36. R (2) - (any, fun) reduce a by b, (num, num) range [a, b)
  37. S (1) - (lst) sum by the + operator, (num) digit sum, (str) sum of charcodes
  38. T U V - TBD
  39. W (1) - Wrap arg in a singleton list
  40. X Y - TBD
  41. Z (2) - (any, any) zip
  42. [ (1) - (num) decrement
  43. \ - Single char literal
  44. ] (1) - (num) increment
  45. ^ - TBD
  46. _ - Take input
  47. ` (variadic) - List from arguments
  48. a - TBD
  49. b (2) - (any, num) a to base b
  50. c - Constant digraph char
  51. d e f g h - TBD
  52. i (2) - (any, num) index into a
  53. j k l - TBD
  54. m - Math digraph char
  55. n o p q - TBD
  56. r (1) - (num) range [0, a)
  57. s - TBD
  58. t (2) - (any, num) take b elements from a
  59. u v w x y - TBD
  60. z (3) - (any, any, fun) map c over a, b
  61. { (1) - (any) first item/char/digit
  62. | (2) - (num, num) logical OR
  63. } (1) - (any) last item/char/digit
  64. ~ (1) - (any) logical NOT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement