F#
IDEs, Editors, .. Here are my favorites in descend order Visual Studio Express 2012 for Web yes! - it allows you free F# development, notably for libraries LINQPad again and again a wonderful tool! SharpDevelop sometimes a little bit idiosyncratic Online Scratchpad on TryFSharp.org the fastest start … Additional resources Maybe the following packages are necessary or in minimum useful: Visual F# Express Tools The free standalone F# compiler tools Windows 8 and .NET 4.5 SDK Windows 7 and .NET 4.0 ......
Situation, Problem During playing a little bit with these WPF MVC F# projects inside SharpDevelop I stumbled over the situation, that I could not send F# snippets to the interactive window. The menu was not available. Normally it looks like this: Solution If you would like to use the context menu “Send to F# Interactive” inside SharpDevelop during fsx developing, you have to ensure that this fsx file is part of an F# project! fsx only as a solution item no context menu “Send to F# Interactive” fsx ......
Situation My private machine has Microsoft Visual Studio Express 2012 for Windows Desktop. This Visual Studio edition doesn’t allow to develop with F#. So I installed additionally SharpDevelop. But it took longer as expected to get F# projects running in this environment. Problem Creating a new or opening an existing F# project ended up in this error: “Please ensure that the F# compiler is installed on your computer.” According the the installation hints from Use F# on Windows, I installed the following ......
Da gibt es unterschiedliche Auffassungen.
Im Englischen:
- Func f = x => x * 2;
”x goes to x * 2”
”x maps to x * 2”
”x becomes x * 2”
”x induces x * 2” - Func test = c => c.City == "London";
"c for which c.City equals London"
Im Deutschen:
- Func f = x => x * 2;
”x wird abgebildet auf x + 2”
”x wechselt zu x * 2”
Today i played a little bit with IFeature-sequences and piping data. The result was a calculator of the bounding box around all features in a feature class. Maybe a little bit dirty, but for learning was it OK. ;-) open System;; #I "C:\Program Files\ArcGIS\DotNet";; #r "ESRI.ArcGIS.System.dll";; #r "ESRI.ArcGIS.DataSourcesGDB... #r "ESRI.ArcGIS.Geodatabase.dl... #r "ESRI.ArcGIS.Geometry.dll";; open ESRI.ArcGIS.esriSystem;; open ESRI.ArcGIS.DataSourcesGDB;; open ESRI.ArcGIS.Geodatabase;; open ......
After accessing one feature now i iterate through all features of a feature class: open System;; #I "C:\Program Files\ArcGIS\DotNet";; #r "ESRI.ArcGIS.System.dll";; #r "ESRI.ArcGIS.DataSourcesGDB... #r "ESRI.ArcGIS.Geodatabase.dl... open ESRI.ArcGIS.esriSystem;; open ESRI.ArcGIS.DataSourcesGDB;; open ESRI.ArcGIS.Geodatabase;; let aoInitialize = new AoInitializeClass();; let status = aoInitialize.Initialize(esr... let workspacefactory = new SdeWorkspaceFactoryClass();; ......
After having a first look on F# its time to ask: How could i use F# with ArcObjects. So my first steps was to do something with a feature in a F# interactive session. And these are my first code lines: open System;; #I "C:\Program Files\ArcGIS\DotNet";; #r "ESRI.ArcGIS.System.dll";; #r "ESRI.ArcGIS.DataSourcesGDB... #r "ESRI.ArcGIS.Geodatabase.dl... open ESRI.ArcGIS.esriSystem;; open ESRI.ArcGIS.DataSourcesGDB;; open ESRI.ArcGIS.Geodatabase;; let aoInitialize = new AoInitializeClass();; let ......
After installing SharpDevelop 4 the F# Interactive could not be activated.
In my case the correct folder for the F# installation must by specified in die application config file.
So i opened SharpDevelop.exe.config and set this entry in the appSettings section:
<add key="alt_fs_bin_path" value="C:\Program Files\FSharp\bin" />