- CommonLisp:
- hash-table
- Scheme:
- hash-table (SRFI-69), hashtable (R6RS Scheme)
- Haskell:
- Map
- OCaml:
- Hashtbl, Map
- SML:
- hash_table (sml-nj-lib)
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
function Hoge | |
{ | |
param( | |
[ValidateNotNullOrEmpty()] | |
[string[]] $x = @()) | |
@($x) | % { ... } | |
} | |
$x = @() |
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
function Hoge | |
{ | |
param( | |
[string[]] $x = @()) | |
@($x) | % { ... } | |
} |
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
function Outer-Func { | |
function Inner-Func { | |
param ($x) | |
"Inner-Func called: $x" | |
} | |
Inner-Func 1 #ここからは呼べる |
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
filter Filter-Sample1 { | |
Write-Host "process: 複数回実行されます: $_" | |
} | |
filter Filter-Sample2 { | |
param($X) |
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
@echo off | |
rem テスト | |
rem 何でもない日 | |
call :GET_YESTERDAY "2014/06/13" | |
if "%result%" == "2014/06/12" (echo OK) else (echo NG) | |
rem 1 月以外の月初日 | |
call :GET_YESTERDAY "2014/06/01" |
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
ScriptHelp |
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
int _tmain(int argc, _TCHAR* argv[]) | |
{ | |
EVENT_TRACE_LOGFILE logFile = {}; | |
logFile.LogFileName = L"Controller1.etl"; | |
logFile.LoggerName = L"EtwSamples.Controller1"; | |
logFile.ProcessTraceMode = | |
PROCESS_TRACE_MODE_EVENT_RECORD; | |
logFile.EventRecordCallback = &EventRecordCallback; | |
logFile.Context = &logFile; |
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
// Consumer1.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 | |
// | |
#include "stdafx.h" | |
#include "../Provider0/ProviderManifest0.h" | |
VOID WINAPI EventRecordCallback(_In_ PEVENT_RECORD eventRecord); | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ |
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
// Consumer2.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 | |
// | |
#include "stdafx.h" | |
#include "../Provider0/ProviderManifest0.h" | |
VOID WINAPI EventRecordCallback(_In_ PEVENT_RECORD eventRecord); | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ |
OlderNewer