added CBV vs CBN worksheet
This commit is contained in:
		
							
								
								
									
										10
									
								
								src/Lesson1/CBV_vs_CBN.sc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/Lesson1/CBV_vs_CBN.sc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| def firstCBV(x: Int, y: Int): Int = x | ||||
|  | ||||
| def firstCBN(x: Int, y: => Int): Int = x | ||||
|  | ||||
| def loop: Int = loop | ||||
|  | ||||
| firstCBV(4, 5) | ||||
| firstCBN(4, 5) | ||||
| firstCBN(4, loop) | ||||
| //firstCBV(4, loop) | ||||
		Reference in New Issue
	
	Block a user