File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
#![ no_main]
2
2
#![ no_std]
3
- // please don not expect this to compile properly under geany without more assistance
3
+ // please do not expect this to compile properly under geany without more assistance
4
4
extern crate panic_halt;
5
5
// github.com therealprof / microbit
6
6
use core:: fmt:: Write ;
@@ -65,6 +65,11 @@ fn main() -> ! {
65
65
leds. display ( & mut delay, checker_a, 1000 ) ;
66
66
leds. display ( & mut delay, checker_b, 1000 ) ;
67
67
}
68
+ let mut j = 0 ;
69
+ ( 0 ..5 ) . flat_map ( |x| x * 100 .. x * 110 )
70
+ . enumerate ( )
71
+ . filter ( |& ( i, x) | ( i + x) % 3 == 0 )
72
+ . for_each ( |( i, x) | j=x) ; // try these on BBC build
68
73
}
69
74
panic ! ( ) ;
70
75
}
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ fn main() -> ! {
65
65
leds. display ( & mut delay, checker_a, 1000 ) ;
66
66
leds. display ( & mut delay, checker_b, 1000 ) ;
67
67
}
68
+ let mut j = 0 ;
69
+ ( 0 ..5 ) . flat_map ( |x| x * 100 .. x * 110 )
70
+ . enumerate ( )
71
+ . filter ( |& ( i, x) | ( i + x) % 3 == 0 )
72
+ . for_each ( |( _i, x) | j=x) ; // try these on BBC build
68
73
}
69
74
panic ! ( ) ;
70
75
}
You can’t perform that action at this time.
0 commit comments