Hello ,
I'm new to swift. current dev tools swift 4.2 on ubuntu 17.04 using only text mode things no xcode here ..
trying a little code that giving me undclared type when doing swift build
CFMutableBitVector is supposed to be part of foundation but i have no clue why this is giving error
import Foundation
struct CompressedGene {
let length: Int
private let bitVector: CFMutableBitVector
init(original: String) {
length = original.count
// default allocator, need 2 * length number of bits
bitVector = CFBitVectorCreateMutable(kCFAllocatorDefault, length * 2)
CFBitVectorSetCount(bitVector, length * 2) // fills the bit vector with 0s
}
}
thanks for replying