mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-09-01 02:42:12 +02:00
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Fixed down merge-conflict.
This commit is contained in:
@@ -351,7 +351,7 @@ for i in 1..5 {
|
||||
|
||||
// Arrays have domains as members that we can iterate over
|
||||
for idx in realArray.domain { // Again, idx is a 2*int tuple
|
||||
realArray[idx] = 1 / realArray[idx[1],idx[2]]; // Access by tuple and list
|
||||
realArray[idx] = 1 / realArray[idx[1],idx[2]]; // Access by tuple and list
|
||||
}
|
||||
|
||||
writeln( realArray );
|
||||
@@ -966,7 +966,7 @@ proc main(){
|
||||
begin { // Writer task
|
||||
writeln( "Writer: will write in..." );
|
||||
countdown( 3 );
|
||||
someSyncVar$ = 123;
|
||||
someSyncVar$ = 123;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1074,14 +1074,14 @@ Installing the Compiler
|
||||
|
||||
Chapel can be built and installed on your average 'nix machine (and cygwin).
|
||||
[Download the latest release version](https://github.com/chapel-lang/chapel/releases/)
|
||||
and its as easy as
|
||||
and it's as easy as
|
||||
|
||||
1. `tar -xvf chapel-1.12.0.tar.gz`
|
||||
2. `cd chapel-1.12.0`
|
||||
3. `make`
|
||||
4. `source util/setchplenv.bash # or .sh or .csh or .fish`
|
||||
|
||||
You will need to `source util/setchplenv.EXT` from within the Chapel directory (`$CHPL_HOME`) every time your terminal starts so its suggested that you drop that command in a script that will get executed on startup (like .bashrc).
|
||||
You will need to `source util/setchplenv.EXT` from within the Chapel directory (`$CHPL_HOME`) every time your terminal starts so it's suggested that you drop that command in a script that will get executed on startup (like .bashrc).
|
||||
|
||||
Chapel is easily installed with Brew for OS X
|
||||
|
||||
|
Reference in New Issue
Block a user