1 people like it.

List Comprehensions with float iterator

Is it a bug or a feature? :)

1: 
2: 
3: 
4: 
5: 
6: 
let dl = 9.5 / 11.
let min = 21.5 + dl
let max = 40.5 - dl

let a = [ for z in min .. dl .. max -> z ] // should have 21 elements
let b = a.Length
val dl : float

Full name: Script.dl
val min : float

Full name: Script.min
val max : float

Full name: Script.max
val a : float list

Full name: Script.a
val z : float
val b : int

Full name: Script.b
property List.Length: int
Raw view New version

More information

Link:http://fssnip.net/3H
Posted:5 years ago
Author:Oldrich Svec
Tags: list comprehensions