I want to compute a bin as follows:
let t = seq { 1..10 } |> Seq.takeWhile (fun e -> e % 2 == 0)
but the compiler complains
playground.fsx(27,59): error FS0001: The type 'int' does not support the operator '=='
What am I doing wrong?
F # uses single = for the equality operator:
=
let t = seq { 1..10 } |> Seq.takeWhile (fun e -> e % 2 = 0)
Source: https://habr.com/ru/post/983846/More articles:How to get "drwx --- rx +" permission using CHMOD? - Bash script - unixNodejs pm2 error on application startup - node.jsHow to create a plug-in system in a functional style? - functional-programmingDoes uWSGI + nginx for django application avoid pylibmc multi-thread concurrency problem? - multithreadingSwift URLSession Redirection Prevention - redirectAngularJS: UI-router WARNING: Tried to load angular more than once - angularjsMockito with Robolectric: "ClassCastException occurred while creating a proxy" - javaBuildozer did not execute the last command - pythonAdd or force line break after div - htmlMongoose OpenShift Connection - node.jsAll Articles