Sha256: bf09889760c1c1865e560e75f1f661cceb07e29b762406b004e27f8e4165ca2e
Contents?: true
Size: 289 Bytes
Versions: 98
Compression:
Stored size: 289 Bytes
Contents
module Octal let isValid char = char >= '0' && char <= '7' let charToDecimal char = (int)char - (int)'0' let toDecimal (input: string) = let chars = input.ToCharArray() if Array.forall isValid chars then Array.fold (fun acc c -> acc * 8 + charToDecimal c) 0 chars else 0
Version data entries
98 entries across 98 versions & 1 rubygems