dev-resources.site
for different kinds of informations.
F# For Dummys - Day 4 Value
Published at
5/16/2024
Categories
fsharp
Author
pythonzhu
Main Article
Categories
1 categories in total
fsharp
open
Author
9 person written this
pythonzhu
open
Today we learn how to define and store a value
there are different types of value, we introduce 4 of them
- bool is data type indicate yes or no
let is_this_apple: bool = true
let is_this_orange: bool = false
: bool is type hint, tell compiler type of the variable we define is bool, normally we omit the type hint, as compilerΒ is smart enough to infer the type itself, so we can also define as below
let is_this_apple = true
let is_this_orange = false
- int is integer
let number_of_people_in_family: int = 5
- string is a section of text
let dream_of_girl = "have food with grandma in warm place"
- float and double is decimal, a number with fraction part
let price_of_milk = 1.19
fsharp Article's
30 articles in total
Learning some Fantomas AST
read article
Ingesting Data in F# with Aether: A Practical Guide to Using Lenses, Prisms, and Morphisms
read article
Suicide Boys Merch quality designed shop
read article
F# 9: Nullable Reference Types and Advancing Null Safety
read article
Unlocking High-Performance AI Computing with F#: A Comprehensive Guide
read article
Scope progression
read article
How do I register a complaint with Delhivery?
read article
New wallpapers every day
read article
F# π€ GTK4
read article
Introducing F# with Semantic Kernel: Simplifying AI App Development with the Pipeline Pattern
read article
Describing musical domain with F#
read article
Who's Your .NET Ally? - F# vs C#
read article
F# For Dummys - Day 13 Collections Array
read article
F# For Dummys - Day 12 Collections List
read article
Primitive Type Differentiation in F#
read article
Request -> Handler -> SubPub Pattern with MediatR or Raw F# code
read article
F# For Dummys - Day 11 Collections Tuple
read article
F# For Dummys - Day 9 Branching
read article
F# For Dummys - Day 8 Function && Pipeline
read article
F# For Dummys - Day 7 Operators
read article
F# For Dummys - Day 16 Collections Sequence
read article
F# For Dummys - Day 15 Collections Set
read article
F# For Dummys - Day 14 Collections Map
read article
F# For Dummys - Day 10 Loop
read article
F# For Dummys - Day 6 Format
read article
F# For Dummys - Day 5 Mutable
read article
F# For Dummys - Day 4 Value
currently reading
F# For Dummys - Day 3 New Program
read article
F# For Dummys - Day 2 Environment
read article
F# For Dummys - Day 0 Foreword
read article
Featured ones: