« first day (1162 days earlier)
← previous day
next day →
last day (2362 days later) »
Colonel Panic
10:53
Hi. Is there a more succinct way to get the first item of an array
row |> splitCommas |> fun t -> t.[0]
I wrote
(splitCommas row).[0]
but I wonder if it can be done without brackets with a keyword or function such as Head or frst
Foggy Finder
11:23
Hello @ColonelPanic
@ColonelPanic
Array.head
@s952163 it will be not interesting =)
s952163
12:03
@FoggyFinder @ColonelPanic but be careful with such indexing and also Array.head, it will throw an ArgumentException if the array is empty.
there is tryHead too
2 hours later…
s952163
13:34
F# meetup soon :)
meetup.com/ja-JP/fsharp_tokyo/events/241534227
Maverik
13:47
just gotta get a visa/ticket sorted :D
Colonel Panic
@FoggyFinder I can see List.head but not Array.head . Have I missed something?
franssu
@s952163 nice
unfortunately, in France, we have a meetup crasher
you know, like a wedding crasher ?
boring guy who's always there T_T
Tomas Petricek is there, but the guy doesn't let him speak, for two hours
s952163
14:05
omg
Tomas is a lot of fun. he was here last year.
@Maverik tbh its a bad time of the year to visit, super humid and hot
ᕙ༼ಠ͜ʖಠ༽ノ
Maverik
even if it wasn't - it's still all the way over there!
s952163
@ColonelPanic check your F# version. many collection functions got normalized in f#4
4 hours later…
Reed Copsey
18:23
Yep - newer versions of F# have those routines
« first day (1162 days earlier)
← previous day
next day →
last day (2362 days later) »
all rooms
Transcript for
Jul
11
Jul '17
12
Jul
13
F#
A place to learn and teach. Also consider F# Slack -
fsharp.or...
f#
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile