Guest User

Untitled

a guest
Jan 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. foo // bar
  2. (* bar[foo] *)
  3.  
  4. Hold[foo // bar]
  5. (* bar[foo] *)
  6.  
  7. Postfix[foo//bar]
  8.  
  9. foo//bar
  10.  
  11. ntn[u_] :=
  12. FlipView[{Style[u, 20],
  13. Row[{Style[ToExpression[u], 20]}, Background -> LightRed]}]
  14.  
  15. bar /: MakeBoxes[bar[foo_], StandardForm] := RowBox[{MakeBoxes[foo], "//", "bar"}]
  16.  
  17. bar[x_] := x^2
  18.  
  19. table = TableForm[
  20. {
  21. {Plus, a+b},
  22. {Subtract, a-b},
  23. {bar, Defer[a //bar]}
  24. },
  25. TableHeadings->{"function", "example"}
  26. ]
Add Comment
Please, Sign In to add comment