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
use v6; | |
my $SIZE = 9; | |
my $FOUND_NEW_STUFF = True; | |
multi sub eigenstates (Int $quantum_state) { $quantum_state } | |
multi sub eigenstates (Junction $quantum_state) { #return $quantum_state.eigenstates() ; #I wish | |
my @possibilities ; | |
for (1..$SIZE) { #Our universe is 1..9 :-) | |
@possibilities.push($_) if $_ ~~ $quantum_state; |
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
my $c; | |
{ | |
my $a = 42; | |
$c = { say $a }; | |
} | |
$c() | |
############################################# | |
This is SIC v2010.11 |