File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ already specified in the signature.
537
537
X<|Reference,Junction (FAQ)>
538
538
=head2 How can I extract the values from a Junction?
539
539
540
- If you want to extract the values (eigenstates) from a
540
+ If you want to extract the values from a
541
541
L<C<Junction>|/type/Junction>, you are probably doing something wrong and
542
542
should be using a L<C<Set>|/type/Set> instead.
543
543
@@ -546,13 +546,13 @@ Junctions are meant as matchers, not for doing algebra with them.
546
546
If you want to do it anyway, you can abuse autothreading for that:
547
547
548
548
=begin code
549
- sub eigenstates (Mu $j) {
550
- my @states ;
551
- -> Any $s { @states .push: $s }.($j);
552
- @states ;
549
+ sub junction-values (Mu $j) {
550
+ my @values ;
551
+ -> Any $s { @values .push: $s }.($j);
552
+ @values ;
553
553
}
554
554
555
- say eigenstates (1|2|3).join(', ');
555
+ say junction-values (1|2|3).join(', ');
556
556
# prints 1, 2, 3 or a permutation thereof
557
557
=end code
558
558
You can’t perform that action at this time.
0 commit comments