F# | C# | Scala | Clojure | Python | Ruby | Haskell | SQL | OCaml | Common Lisp | Erlang | Smalltalk | Scheme | Ecmascript 5 | Perl 5 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map | Select | map | map | map | collect | map | Select | map | mapcar | map | collect: | map | map | map |
filter | Where | filter | filter | filter | select | filter | Where | filter | remove-if-not | filter | select: | filter | filter | grep |
fold | Aggregate | foldLeft | reduce | reduce | inject | foldl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RZ.FSharp.Akka.Extension | |
open System.Threading.Tasks | |
open Akka.Actor | |
open Akka.FSharp | |
open System.Runtime.CompilerServices | |
type ReceiveActorFs() = | |
inherit ReceiveActor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Akka.FSharp.Extensions | |
open Akka.Dispatch | |
open System.Threading.Tasks | |
// source: https://github.com/tjaskula/akka.net-fsharp.extensions/blob/master/src/Akka.FSharp.Extensions/FsApi.Extensions.fs | |
module Actor = | |
open Akka.Actor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Test | |
open System.Runtime.InteropServices | |
// F# implementation of http://pinvoke.net/default.aspx/mpr.WNetAddConnection2 | |
module NativeMethods = | |
type ResourceScope = | |
| Connected = 0x1u | |
| GlobalNet = 0x2u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private java.time.ZonedDateTime convertJODADateTimeToJavaZonedDateTime(DateTime originDateTime, DateTimeZone originTimeZone) { | |
if (originDateTime == null || originTimeZone == zone) { | |
return null; | |
} | |
// Convert from JODA to Java 8 time | |
java.time.ZonedDateTime newDateTime = java.time.ZonedDateTime.ofInstant( | |
Instant.ofEpochMilli(originDateTime.getMillis()), java.time.ZoneId.of(zone.getID())); | |
return newDateTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// https://github.com/dps/go-xml-parse/blob/master/go-xml-parse.go | |
import ( | |
"fmt" | |
"os" | |
"encoding/xml" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using IMAPI2FS; // COM reference: Microsoft IMAPI2 File System Image Creator | |
using IStream = System.Runtime.InteropServices.ComTypes.IStream; | |
class IsoImage { | |
[DllImport("shlwapi.dll", CharSet = CharSet.Unicode, PreserveSig = true)] | |
static extern void SHCreateStreamOnFile(string pszFile, uint grfMode, out IStream ppstm); | |
static void Main(string[] args) { |