Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 573 Bytes

feh.phtpe.CollectionsOfPhisTypedSpec.md

File metadata and controls

29 lines (21 loc) · 573 Bytes

CollectionsOfPhisTypedSpec

[+] map

	[+] ( 1 to 10 map (_.of[kg]) map(_ * 2) ).map(_.value) == Range(2, 22, 2)  

[+] reduce

	[+] ( 1 to 10 map(_.of[kg]) ).reduceLeft(_ + _)  =@= 55.of[kg]  

[+] fold

	[+] (0.of[kg] /: (1 to 10))(_ + _.of[kg])        =@= 55.of[kg]  
	[+] (0.of[kg] /: (1 to 10).map(_.of[kg]))(_ + _) =@= 55.of[kg]  

[+] min/max

[+] sum/product

  
   

| CollectionsOfPhisTypedSpec | Finished in 14 ms | 6 examples, 0 failure, 0 error, 2 pending |