Array<T>
Legend:
✏️ method changesthis
.🔒 method does not changethis
.
Array<T>.prototype.*
:
concat(...items: Array<T[] | T>): T[]
🔒 ES3
void Classify(string number, Action<int> onArabic, Action<string> onRoman) { | |
if (int.TryParse(number, out var arabicNumber)) | |
onArabic(arabicNumber); | |
else | |
onRoman(number); | |
} | |
/* | |
* Note how all details about how classification works are hidden in the function Classify(). | |
* It's not visible to the outside wheter an "if" is used or a table lookup or whatever. |
Array<T>
Legend:
this
.this
.Array<T>.prototype.*
:
concat(...items: Array<T[] | T>): T[]
// | |
// MIT License | |
// | |
// Copyright (c) 2018 Ali Sharif | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
{ | |
"order": { | |
"href": "http://...", | |
"method": "POST", | |
"template": { | |
"location": "", | |
"@location": { | |
"prompt": "Enter your postal code" | |
}, | |
"pickupTime": "", |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html