Last active
August 29, 2015 14:16
-
-
Save kgersen/b5dcc2dd4351c0015402 to your computer and use it in GitHub Desktop.
This file contains 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
<canvas id="myCanvas" width="500" height="500"></canvas> |
This file contains 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
void main() { | |
List<int> tableau = [1, 10, -5, 3, 4, -8, 2]; | |
int idx = 0; | |
try | |
{ | |
idx = tableau.indexOf(tableau.firstWhere((i)=>i<0)); | |
} | |
catch (e) | |
{ | |
idx = -1; | |
} | |
print("index = $idx"); | |
} |
This file contains 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
p { | |
color: #888; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment