This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Update do | |
| @doc """ | |
| # Eamples | |
| iex> import Update | |
| Update | |
| iex> x = 5 | |
| 5 | |
| iex> x = update x when rem(x, 2) != 0, do: x * 2 | |
| 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A function to check what was added to the global window object. | |
| */ | |
| window.addedWindowProperties = function() { | |
| // Add an iFrame to get a reference window. | |
| var iFrame = document.createElement('iframe'); | |
| document.body.appendChild(iFrame); | |
| // Get all property names of the current window and filter all names that | |
| // are properties of the reference. |