# Questions about the code signs in Mathematica: @, #, / ?

**URL:** <https://community.wolfram.com/t/questions-about-the-code-signs-in-mathematica/1313>\
**Category:** Questions\
**Tags:** mathematica\
**Created:** [January 20, 2014, 12:54am UTC](https://community.wolfram.com/t/questions-about-the-code-signs-in-mathematica/1313 "2014-01-20T00:54:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![czf0504](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@czf0504](https://community.wolfram.com/u/czf0504)\
**Post date:** [January 20, 2014, 12:54am UTC](https://community.wolfram.com/t/questions-about-the-code-signs-in-mathematica/1313/1 "2014-01-20T00:54:27Z")

</div>

```auto
checkIfOn := (Select[# < 0.1 & /@ 

      scaledTrajectory[[iterator ;; iterator +2]], # &] // Length) == 0

```

I am very confused by this code, what does “# \< 0.1 & /@”  
mean, here the scaledTrajectory[] just means a table of numbers. I could find “#” meaning, but just cann’t figure this code’s meaning out. I would appreciate it very much if anyone could help.

---

<div class="post-metadata">

**Author:** ![bsimpson141421356](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bsimpson141421356](https://community.wolfram.com/u/bsimpson141421356)\
**Post date:** [January 20, 2014, 2:53am UTC](https://community.wolfram.com/t/questions-about-the-code-signs-in-mathematica/1313/2 "2014-01-20T02:53:02Z")

</div>

An expression containing # (and perhaps a few other special characters) and ending with an &  
is a shorthand notation for definining a function without giving it a name. This tutorial might help  
you begin to get an idea how this works, but it sometimes takes some study and practice to be  
able to understand this notation when you see it used.  
[  
http://reference.wolfram.com/mathematica/tutorial/PureFunctions.html](http://reference.wolfram.com/mathematica/tutorial/PureFunctions.html)

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [January 20, 2014, 11:57pm UTC](https://community.wolfram.com/t/questions-about-the-code-signs-in-mathematica/1313/3 "2014-01-20T23:57:07Z")

</div>

Many of these cryptic characters are in the documentation. The descriptions can help,  
or at least give suggestions for what to look under.

```auto
In[1]:= ? /@                                                                           
Map[f, expr] or f/@expr applies f to each element on the first level in expr.
      Map[f, expr, levelspec] applies f to parts of expr specified by levelspec.

In[2]:= ? #                                                                            
# represents the first argument supplied to a pure function. 
    #n represents the n'th argument.

In[3]:= ? &                                                                            
Function[body] or body &
       is a pure function. The formal parameters are # (or #1), #2, etc. 
      Function[x, body] is a pure function with a single formal parameter x. 
     Function[{x1 , x2 , }, body] is a pure function with a list of formal parameters.

```

---

<div class="post-metadata">

**Author:** ![patrickstevens](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/patrickstevens/32/14045_2.png) [@patrickstevens](https://community.wolfram.com/u/patrickstevens)\
**Post date:** [January 22, 2014, 2:43pm UTC](https://community.wolfram.com/t/questions-about-the-code-signs-in-mathematica/1313/4 "2014-01-22T14:43:05Z")

</div>

This is perhaps more easily seen as:

```auto
checkIfOn := (Select[Function[{x}, x < 0.1] /@ scaledTrajectory[[iterator ;; iterator +2]], Function[{x}, x]] // Length) == 0

```

That is, “select, from the True or False outputs we get on testing whether each of these three scaledTrajectories is less than 0.1, those which are identically the symbol True; find the length of what we just output; see whether it’s equal to 0”.

It is much more neatly phrased as:

```auto
MemberQ[scaledTrajectory[[iterator ;; iterator + 2]], _?(# < 0.1 &)]

```
