Skip to main content

Timeline for Difference between @ and @@

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Nov 14, 2013 at 21:19 comment added Hector @hongchaniyi: It might help if you visualize the {} as having an explicit head: Permutations@{x,y} = Permutations@List[x,y] = Permutations[List[x,y]]
Nov 14, 2013 at 21:07 comment added Vladimir Reshetnikov @hongchaniyi It's just that some functions accept a signle argument that is itself a list.
Nov 14, 2013 at 21:06 comment added user10568 @Vladimir Thanks for your reply. However, if I input Permutations@{x,y}, I have {{x,y},{y,x}}. It seems @ also apply to a set of argument.
Nov 14, 2013 at 20:58 history edited Vladimir Reshetnikov CC BY-SA 3.0
added 66 characters in body
Nov 14, 2013 at 20:51 comment added Leonid Shifrin This description hides the fundamental feature of Apply that it replaces one head with another. Technically, a multi-parameter function is applied to a Sequence of arguments, not a List (or any other head there was around them, which gets "eaten up" by Apply).
Nov 14, 2013 at 20:29 history answered Vladimir Reshetnikov CC BY-SA 3.0